Expand description
Phoenix’s Core library types and behaviors
Modules§
- aes
- AES symmetric cipher
Structs§
- Note
- Phoenix Note struct
- Public
Key - Public pair of
a·G
andb·G
defining aPublicKey
- Secret
Key - Secret pair of
a
andb
defining aSecretKey
- Stealth
Address - To obfuscate the identity of the participants, we utilizes a Stealth Address
system.
A
StealthAddress
is composed by a one-time note-public-key (the actual address) and a random pointR
. - TxSkeleton
- Transaction Skeleton used by the phoenix transaction model A phoenix transaction, referred to as tx-skeleton in the specs.
- ViewKey
- Pair of a secret
a
and publicb·G
Enums§
- Error
- All possible errors for Phoenix’s Core
- Note
Type - The types of a Note
- Sender
- The sender of the
Note
. This can be either the encrypted sender’sPublicKey
, if theNote
was created as an output note of a phoenix-transaction, or some contract-data if theNote
was created in another way, e.g. by withdrawing from a contract.
Constants§
- NOTE_
VAL_ ENC_ SIZE - Size of the Phoenix notes value_enc
- OUTPUT_
NOTES - The number of output notes in a transaction
Functions§
- hash
- Hashes a JubJub’s ExtendedPoint into a JubJub’s Scalar using the JubJub’s hash to scalar function
- transparent_
value_ commitment - Use the pedersen commitment scheme to compute a transparent value commitment.
- value_
commitment - Use the pedersen commitment scheme to compute a value commitment using a blinding-factor.