Struct terra_rust_api::PublicKey[][src]

pub struct PublicKey {
    pub raw_pub_key: Option<Vec<u8>>,
    pub raw_address: Option<Vec<u8>>,
}
Expand description

The public key we used to generate the cosmos/tendermind/terrad addresses

Fields

raw_pub_key: Option<Vec<u8>>

This is optional as we can generate non-pub keys without

raw_address: Option<Vec<u8>>

The raw bytes used to generate non-pub keys

Implementations

Generate a Cosmos/Tendermint/Terrad Public Key

Generate from secp256k1 Cosmos/Terrad Public Key

Generate a Cosmos/Tendermint/Terrad Account

build a public key from a tendermint public key

Generate a Operator address for this public key (used by the validator)

Generate Public key from raw address

Gets a bech32-words pubkey from a compressed bytes Secp256K1 public key.

@param publicKey raw public key

Gets a bech32-words pubkey from a compressed bytes Ed25519 public key.

@param publicKey raw public key

Translate from a BECH32 prefixed key to a standard public key

Gets a raw address from a compressed bytes public key.

@param publicKey raw public key

Gets a raw address from a ed25519 public key.

@param publicKey raw public key

The main account used in most things

The operator address used for validators

application public key - Application keys are associated with a public key terrapub- and an address terra-

The operator address used for validators public key.

This is a unique key used to sign block hashes. It is associated with a public key terravalconspub.

This is a unique key used to sign block hashes. It is associated with a public key terravalconspub.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.