Elixium Core v0.6.3 Elixium.KeyPair View Source
All the functions responsible for creating keypairs and using them to sign data / verify signatures
Link to this section Summary
Functions
Generates a Base58 encoded compressed address based on a public key. First 3 bytes of the address are the version number of the address, and last 4 bytes of the address are the checksum of the public key. This checksum allows for address validation, i.e. checking mistyped addresses before creating a transaction
Returns the uncompressed public key stored within the given address
Returns a 4 byte checksum of the provided pubkey
Compresses an ECDSA public key from 65 bytes to 33 bytes by discarding the y coordinate
Creates a new keypair and stores the private key in a keyfile. Returns the public and private key
Creates a new mnemonic to give to users based off private key
Generates a keypair from the seed phrase or from the private key, leading “ “ will switch to mnemonic to import key from
Reads in a private key from the given file, and returns a tuple with the public and private key
Using a public address, fetch the correct keyfile and return the only the private key
Link to this section Functions
Generates a Base58 encoded compressed address based on a public key. First 3 bytes of the address are the version number of the address, and last 4 bytes of the address are the checksum of the public key. This checksum allows for address validation, i.e. checking mistyped addresses before creating a transaction.
Returns the uncompressed public key stored within the given address.
Returns a 4 byte checksum of the provided pubkey
Compresses an ECDSA public key from 65 bytes to 33 bytes by discarding the y coordinate.
Creates a new keypair and stores the private key in a keyfile. Returns the public and private key
Creates a new mnemonic to give to users based off private key
Generates a keypair from the seed phrase or from the private key, leading “ “ will switch to mnemonic to import key from
Reads in a private key from the given file, and returns a tuple with the public and private key
Using a public address, fetch the correct keyfile and return the only the private key