Type Alias chain_vote::tally::OpeningVoteKey

source ·
pub type OpeningVoteKey = MemberSecretKey;
Expand description

Secret key for opening vote

Aliased Type§

struct OpeningVoteKey(pub(crate) SecretKey);

Fields§

§0: SecretKey

Implementations§

source§

impl MemberSecretKey

source

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

source

pub fn from_bytes(bytes: &[u8]) -> Option<Self>

source

pub fn to_public(&self) -> MemberPublicKey

Trait Implementations§

source§

impl Bech32 for MemberSecretKey

source§

const BECH32_HRP: &'static str = _

The human-readable prefix that is used to represent the the object in the Bech32 format. On decoding, the HRP of the input string is checked against this value.
source§

const BYTES_LEN: usize = 32usize

Length of the encoded binary data.
source§

fn try_from_bech32_str(bech32_str: &str) -> Result<Self, Error>

Decodes the object from its Bech32 string representation.
source§

fn to_bech32_str(&self) -> String

Produces a Bech32 string format representation of the object.
source§

impl Clone for MemberSecretKey

source§

fn clone(&self) -> MemberSecretKey

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more