breez_sdk_liquid::lightning::sign

Trait EntropySource

pub trait EntropySource {
    // Required method
    fn get_secure_random_bytes(&self) -> [u8; 32];
}
Expand description

A trait that describes a source of entropy.

Required Methods§

fn get_secure_random_bytes(&self) -> [u8; 32]

Gets a unique, cryptographically-secure, random 32-byte value. This method must return a different value each time it is called.

Implementors§