Struct shuttle_core::KeyPair [] [src]

pub struct KeyPair { /* fields omitted */ }

The secret and public key pair of the account.

Methods

impl KeyPair
[src]

[src]

Create the key pair from the secret seed, e.g. SDAKFNYEIAORZKKCYRILFQKLLOCNPL5SWJ3YY5NM3ZH6GJSZGXHZEPQS.

[src]

Create a random key pair.

[src]

Create a key pair from the network passphrase.

[src]

Crete a key pair from raw bytes.

[src]

Return the public key.

[src]

Return the secret key.

[src]

Sign the message.

[src]

Sign the message together with the signature hint.

[src]

Verify the signature against the message.

[src]

Return the signature hint, that is the last 4 bytes of the public key.

Trait Implementations

impl Debug for KeyPair
[src]

[src]

Formats the value using the given formatter.

impl Clone for KeyPair
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for KeyPair
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for KeyPair
[src]