Trait breez_sdk_core::lightning::sign::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.

Implementations on Foreign Types§

§

impl EntropySource for LoopbackSignerKeysInterface

§

impl EntropySource for MyKeysManager

§

impl EntropySource for SimpleEntropy

Implementors§