Crate iota_constants

Source
Expand description

Constants used throughout iota related crates

Enums§

SecurityLevel
Security levels of a private key and address pair. The greater the security level, the larger and more secure the signature of a spent address is against brute force attacks.

Constants§

ADDRESS_CHECKSUM_TRYTES_SIZE
Size of address checksum in trytes
ADDRESS_LENGTH_WITHOUT_CHECKSUM
The length of an address without a checksum
ADDRESS_LENGTH_WITH_CHECKSUM
The length of an address with a checksum
ADDRESS_TRINARY_SIZE
Size of address in trtis
ADDRESS_WITH_CHECKSUM_TRYTES_SIZE
Size of address with checksum in trytes
ATTACHMENT_TIMESTAMP_LOWER_BOUND_TRINARY_SIZE
Size of upper bound attachment timestamp in trtis
ATTACHMENT_TIMESTAMP_TRINARY_SIZE
Size of attachment timestamp in trtis
ATTACHMENT_TIMESTAMP_UPPER_BOUND_TRINARY_SIZE
Size of lower bound attachment timestamp in trtis
BRANCH_TRANSACTION_TRINARY_SIZE
Size of brnach transaction hash in trtis
BUNDLE_TRINARY_SIZE
Size of bundle hash in trtis
CURRENT_INDEX_TRINARY_SIZE
Size of current index in trtis
DEFAULT_MWM
Default Minimum Weight Magnitude on IOTA mainnet
GET_BUNDLE_RESPONSE_ERROR
GET_BUNDLE_RESPONSE_ERROR
GET_INCLUSION_STATE_RESPONSE_ERROR
GET_INCLUSION_STATE_RESPONSE_ERROR
GET_TRYTES_RESPONSE_ERROR
GET_TRYTES_RESPONSE_ERROR
HASH_BYTES_SIZE
Size of hash in bytes
HASH_TRINARY_SIZE
Size of hash in trits
HASH_TRYTES_SIZE
Size of hash in trytes
INVALID_ADDRESSES_INPUT_ERROR
INVALID_ADDRESSES_INPUT_ERROR
INVALID_ATTACHED_TRYTES_INPUT_ERROR
INVALID_ATTACHED_TRYTES_INPUT_ERROR
INVALID_BUNDLE_ERROR
INVALID_BUNDLE_ERROR
INVALID_BUNDLE_HASH_ERROR
INVALID_BUNDLE_HASH_ERROR
INVALID_BUNDLE_SUM_ERROR
INVALID_BUNDLE_SUM_ERROR
INVALID_HASHES_INPUT_ERROR
INVALID_HASHES_INPUT_ERROR
INVALID_INPUT_ERROR
INVALID_INPUT_ERROR
INVALID_SECURITY_LEVEL_INPUT_ERROR
INVALID_SECURITY_LEVEL_INPUT_ERROR
INVALID_SEED_INPUT_ERROR
INVALID_SEED_INPUT_ERROR
INVALID_SIGNATURES_ERROR
INVALID_SIGNATURES_ERROR
INVALID_TAIL_HASH_INPUT_ERROR
INVALID_TAIL_HASH_INPUT_ERROR
INVALID_TRANSFERS_INPUT_ERROR
INVALID_TRANSFERS_INPUT_ERROR
INVALID_TRYTES_INPUT_ERROR
INVALID_TRYTES_INPUT_ERROR
INVALID_VALUE_TRANSFER_ERROR
INVALID_VALUE_TRANSFER_ERROR
ISS_CHUNK_LENGTH
Lenght of Iota Signature Scheme chunk
ISS_FRAGMENTS
Number of Iota Signature Scheme fragments
ISS_KEY_LENGTH
Length of Iota Signature Scheme key
KEY_FRAGMENT_LENGTH
Lenght of key fragment which is 6561
KEY_SEGMENTS_PER_FRAGMENT
Size of key segment per fragment
KEY_SEGMENT_HASH_ROUNDS
Round of key segment hash
LAST_INDEX_TRINARY_SIZE
Size of last index trinary in trtis
LOWER_BOUND_ATTACHMENT_TIMESTAMP
Minimum value of attachment timstamp
MAX_TRIT_VALUE
The maximum value a trit can have
MAX_TRYTE_VALUE
The maximum value a tryte can have
MESSAGE_LENGTH
The mandatory length of a message segment
MIN_CHECKSUM_TRYTES_SIZE
Size of minimum checksum
MIN_TRIT_VALUE
The minimum value a trit can have
MIN_TRYTE_VALUE
The minimum value a tryte can have
NONCE_TRINARY_SIZE
Size of nonce in trtis
NOT_ENOUGH_BALANCE_ERROR
NOT_ENOUGH_BALANCE_ERROR
NO_REMAINDER_ADDRESS_ERROR
NO_REMAINDER_ADDRESS_ERROR
OBSOLETE_TAG_TRINARY_SIZE
Size of obselte tag in trtis
PRIVATE_KEY_REUSE_ERROR
PRIVATE_KEY_REUSE_ERROR
SEED_LENGTH_MAX
The maximum allowed seed length
SENDING_TO_USED_ADDRESS_ERROR
SENDING_TO_USED_ADDRESS_ERROR
SEND_TO_INPUTS_ERROR
SEND_TO_INPUTS_ERROR
SIGNATURE_MESSAGE_FRAGMENT_TRINARY_SIZE
Size of signature message fragment in trtis
TAG_LENGTH
The mandatory length of a tag segment
TAG_TRINARY_SIZE
Size of tag in trtis
TIMESTAMP_TRINARY_SIZE
Size of timestamp in trtis
TRANSACTION_TRINARY_SIZE
Size of a whole transaction object in trits
TRINARY_RADIX
Radix of ternary numeral system
TRITS_PER_BYTE
The number of trits in a byte
TRITS_PER_TRYTE
The number of trits in a tryte
TRUNK_TRANSACTION_TRINARY_SIZE
Size of trunk transaction hash in trtis
TRYTE_ALPHABET
A char array holding all acceptable characters in the tryte alphabet. Used because strings can’t be cheaply indexed in rust.
UPPER_BOUND_ATTACHMENT_TIMESTAMP
Maximum value of attachment timstamp
VALUE_SIZE_TRINARY
Size of value in trtis