Accounts and Keys
The basics of Constellation accounts and keys
Overview
Constellation Network accounts are identified by cryptographic addresses that serve as public identifiers for transactions on the network. These addresses are used across both the Hypergraph (DAG) and metagraphs (L0 tokens), ensuring a unified identity model across the entire ecosystem.
Each account is secured through asymmetric cryptography, relying on a Key Trio consisting of a private key, public key, and address.
The Key Trio
In the Constellation Network, accounts are composed of a key trio consisting of the private key, public key, and an address.
Private key: The private key is a highly confidential piece of information that plays a crucial role in authenticating an address to the network. With the private key, you can execute sensitive actions like signing messages or sending transactions.
Public key: The public key serves as a unique identifier for nodes on the network and is derived from the private key. It is crucial for establishing trust relationships between nodes, enabling secure communication, and verifying digital signatures.
Address: The address is the public-facing component of the Key Trio and represents a public wallet address for receiving payments or other digital transactions. It can be derived from either the private or public key and is widely used for peer-to-peer transactions. Sharing your address with others enables them to send you payments while keeping your private key confidential.
Address Format
Constellation Network addresses are case sensitive!
Addresses consist of 40 characters divided into three parts.
Prefix: the characters “DAG”.
Check digit: A single decimal calculated from the digits in the Hash.
Hash: The base58 encoded hash of the first 36 characters of an account public key.
The Check Digit is computed by taking the sum of all digit characters in the Hash. If the sum is greater than 9, the sum is reduced to a single digit by taking the remainder of the sum divided by 9.
Example Calculation
In the address DAG5poQ31KFjikEgLoqnf9CQR2KVYv3pfxV5NQZY
the Check Digit can be calculated in the following way:
Thus, the Check Digit is 5.
Deriving an Address from a Public Key
The Hash can be derived from the public key in hex format in the following way:
The address is constructed of the three components concatenated together:
Signing Messages
Constellation Network supports ECDSA signatures on secp256k1.
To sign messages, a sha512 hash of the message is signed with the private key.
Last updated
Was this helpful?