[][src]Module monero::cryptonote::subaddress

CryptoNote sub-address protocol

Sub-addresses are grouped with index of subaddresses as a pair of indices (i,j) with i, the major index, representing a group of subaddresses (called an account) and j, the minor index, representing a particular subaddress within that account.

Structs

Index

A subaddress index with major and minor indexes

Functions

get_public_keys

Compute the view public key and spend public key (V', S') at index i from view pair (v, S) where V' = v*S' and S' = mG + S

get_secret_keys

Compute a subkey pair (v', s') from a root keypair (v, s) for index i

get_secret_scalar

Compute the scalar m = Hn("SubAddr" || v || major_index || minor_index) at index i from the view secret key v

get_spend_public_key

Compute the spend public key S' = mG + S at index i from the view pair (v, S)

get_spend_secret_key

Compute the private spend key s' = s + m where m is computed with get_secret_scalar based on v

get_subaddress

Compute the subaddress at index i valid on the given network (by default mainnet)

get_view_secret_key

Compute the private view key v' = v * s' where s' is computed with get_spend_secret_key