⚙ initialize
| Function | Type |
|---|
initialize | (intf: any) => void |
⚙ getLastAnswerId
| Function | Type |
|---|
getLastAnswerId | () => any |
⚙ sendMessageToNode
| Function | Type |
|---|
sendMessageToNode | (url: any, schemaId: any, object: any) => Promise<unknown> |
⚙ sendWalletToOperatorMessage
| Function | Type |
|---|
sendWalletToOperatorMessage | <T = unknown>(url: any, schemaId: any, object: any) => Promise<T> |
🔧 Constants
⚙ TYPE_UNKNOWN
| Constant | Type |
|---|
TYPE_UNKNOWN | 0 |
⚙ TYPE_ARRAY
⚙ TYPE_OBJECT
⚙ TYPE_STRING
⚙ TYPE_NUMBER
⚙ TYPE_BOOLEAN
| Constant | Type |
|---|
TYPE_BOOLEAN | 5 |
⚙ TYPE_NULL
⚙ TYPE_UINT8
⚙ TYPE_UINT16
⚙ TYPE_UINT24
⚙ TYPE_UINT32
| Constant | Type |
|---|
TYPE_UINT32 | 10 |
⚙ TYPE_UINT48
| Constant | Type |
|---|
TYPE_UINT48 | 11 |
⚙ TYPE_BINARY
| Constant | Type |
|---|
TYPE_BINARY | 12 |
⚙ TYPE_BIN256
| Constant | Type |
|---|
TYPE_BIN256 | 13 |
⚙ TYPE_HASH_STR
| Constant | Type |
|---|
TYPE_HASH_STR | 14 |
⚙ TYPE_MAIN
⚙ TYPE_ARRAY_OF
| Constant | Type |
|---|
TYPE_ARRAY_OF | 32 |
⚙ TYPE_NAMES
| Constant | Type |
|---|
TYPE_NAMES | string[] |
⚙ HASHABLE
⚙ MASKABLE
⚙ PROPERTIES
⚙ REDACTED
⚙ HASHED
⚙ MASKED
⚙ MAGIC_STRING
| Constant | Type |
|---|
MAGIC_STRING | "CMTS" |
⚙ PROTOCOL_VERSION
| Constant | Type |
|---|
PROTOCOL_VERSION | 1 |
⚙ VB_ACCOUNT
⚙ VB_VALIDATOR_NODE
| Constant | Type |
|---|
VB_VALIDATOR_NODE | 1 |
⚙ VB_ORGANIZATION
| Constant | Type |
|---|
VB_ORGANIZATION | 2 |
⚙ VB_APPLICATION
| Constant | Type |
|---|
VB_APPLICATION | 3 |
⚙ VB_APP_LEDGER
| Constant | Type |
|---|
VB_APP_LEDGER | 4 |
⚙ N_VIRTUAL_BLOCKCHAINS
| Constant | Type |
|---|
N_VIRTUAL_BLOCKCHAINS | 5 |
⚙ VB_NAME
| Constant | Type |
|---|
VB_NAME | string[] |
⚙ MAX_MICROBLOCK_PAST_DELAY
| Constant | Type |
|---|
MAX_MICROBLOCK_PAST_DELAY | 300 |
⚙ MAX_MICROBLOCK_FUTURE_DELAY
| Constant | Type |
|---|
MAX_MICROBLOCK_FUTURE_DELAY | 60 |
⚙ MB_STATUS_UNRECOVERABLE_ERROR
| Constant | Type |
|---|
MB_STATUS_UNRECOVERABLE_ERROR | 1 |
⚙ MB_STATUS_TIMESTAMP_ERROR
| Constant | Type |
|---|
MB_STATUS_TIMESTAMP_ERROR | 2 |
⚙ MB_STATUS_PREVIOUS_HASH_ERROR
| Constant | Type |
|---|
MB_STATUS_PREVIOUS_HASH_ERROR | 3 |
⚙ ERROR
⚙ RECORD_DESCRIPTION
| Constant | Type |
|---|
RECORD_DESCRIPTION | Schema |
⚙ ACCOUNT_STATE
| Constant | Type |
|---|
ACCOUNT_STATE | Schema |
⚙ ACCOUNT_HISTORY
| Constant | Type |
|---|
ACCOUNT_HISTORY | Schema |
⚙ VIRTUAL_BLOCKCHAIN_STATE
| Constant | Type |
|---|
VIRTUAL_BLOCKCHAIN_STATE | Schema |
⚙ VB_STATES
| Constant | Type |
|---|
VB_STATES | Schema[] |
| Constant | Type |
|---|
BLOCK_INFORMATION | { label: string; definition: { name: string; type: number; }[]; } |
⚙ BLOCK_CONTENT
| Constant | Type |
|---|
BLOCK_CONTENT | { label: string; definition: { name: string; type: number; definition: { name: string; type: number; }[]; }[]; } |
| Constant | Type |
|---|
MICROBLOCK_HEADER_PREVIOUS_HASH_OFFSET | 12 |
⚙ MICROBLOCK_HEADER_BODY_HASH_OFFSET
| Constant | Type |
|---|
MICROBLOCK_HEADER_BODY_HASH_OFFSET | 57 |
| Constant | Type |
|---|
MICROBLOCK_HEADER_SIZE | 89 |
| Constant | Type |
|---|
MICROBLOCK_HEADER | Schema |
⚙ MICROBLOCK_SECTION
| Constant | Type |
|---|
MICROBLOCK_SECTION | Schema |
⚙ MICROBLOCK_BODY
| Constant | Type |
|---|
MICROBLOCK_BODY | Schema |
| Constant | Type |
|---|
MICROBLOCK_VB_INFORMATION | Schema |
⚙ MSG_ERROR
| Constant | Type |
|---|
MSG_GET_CHAIN_INFORMATION | 1 |
| Constant | Type |
|---|
MSG_CHAIN_INFORMATION | 2 |
| Constant | Type |
|---|
MSG_GET_BLOCK_INFORMATION | 3 |
| Constant | Type |
|---|
MSG_BLOCK_INFORMATION | 4 |
⚙ MSG_GET_BLOCK_CONTENT
| Constant | Type |
|---|
MSG_GET_BLOCK_CONTENT | 5 |
⚙ MSG_BLOCK_CONTENT
| Constant | Type |
|---|
MSG_BLOCK_CONTENT | 6 |
⚙ MSG_GET_VIRTUAL_BLOCKCHAIN_STATE
| Constant | Type |
|---|
MSG_GET_VIRTUAL_BLOCKCHAIN_STATE | 7 |
⚙ MSG_VIRTUAL_BLOCKCHAIN_STATE
| Constant | Type |
|---|
MSG_VIRTUAL_BLOCKCHAIN_STATE | 8 |
⚙ MSG_GET_VIRTUAL_BLOCKCHAIN_UPDATE
| Constant | Type |
|---|
MSG_GET_VIRTUAL_BLOCKCHAIN_UPDATE | 9 |
⚙ MSG_VIRTUAL_BLOCKCHAIN_UPDATE
| Constant | Type |
|---|
MSG_VIRTUAL_BLOCKCHAIN_UPDATE | 10 |
| Constant | Type |
|---|
MSG_GET_MICROBLOCK_INFORMATION | 11 |
| Constant | Type |
|---|
MSG_MICROBLOCK_INFORMATION | 12 |
⚙ MSG_AWAIT_MICROBLOCK_ANCHORING
| Constant | Type |
|---|
MSG_AWAIT_MICROBLOCK_ANCHORING | 13 |
⚙ MSG_MICROBLOCK_ANCHORING
| Constant | Type |
|---|
MSG_MICROBLOCK_ANCHORING | 14 |
⚙ MSG_GET_MICROBLOCK_BODYS
| Constant | Type |
|---|
MSG_GET_MICROBLOCK_BODYS | 15 |
⚙ MSG_MICROBLOCK_BODYS
| Constant | Type |
|---|
MSG_MICROBLOCK_BODYS | 16 |
⚙ MSG_GET_ACCOUNT_STATE
| Constant | Type |
|---|
MSG_GET_ACCOUNT_STATE | 17 |
⚙ MSG_ACCOUNT_STATE
| Constant | Type |
|---|
MSG_ACCOUNT_STATE | 18 |
⚙ MSG_GET_ACCOUNT_HISTORY
| Constant | Type |
|---|
MSG_GET_ACCOUNT_HISTORY | 19 |
⚙ MSG_ACCOUNT_HISTORY
| Constant | Type |
|---|
MSG_ACCOUNT_HISTORY | 20 |
⚙ MSG_GET_ACCOUNT_BY_PUBLIC_KEY_HASH
| Constant | Type |
|---|
MSG_GET_ACCOUNT_BY_PUBLIC_KEY_HASH | 21 |
⚙ MSG_ACCOUNT_BY_PUBLIC_KEY_HASH
| Constant | Type |
|---|
MSG_ACCOUNT_BY_PUBLIC_KEY_HASH | 22 |
⚙ MSG_GET_VALIDATOR_NODE_BY_ADDRESS
| Constant | Type |
|---|
MSG_GET_VALIDATOR_NODE_BY_ADDRESS | 23 |
⚙ MSG_VALIDATOR_NODE_BY_ADDRESS
| Constant | Type |
|---|
MSG_VALIDATOR_NODE_BY_ADDRESS | 24 |
⚙ MSG_GET_OBJECT_LIST
| Constant | Type |
|---|
MSG_GET_OBJECT_LIST | 25 |
⚙ MSG_OBJECT_LIST
| Constant | Type |
|---|
MSG_OBJECT_LIST | 26 |
⚙ MSG_GET_GENESIS_SNAPSHOT
| Constant | Type |
|---|
MSG_GET_GENESIS_SNAPSHOT | 27 |
⚙ MSG_GENESIS_SNAPSHOT
| Constant | Type |
|---|
MSG_GENESIS_SNAPSHOT | 28 |
⚙ NODE_MESSAGES
| Constant | Type |
|---|
NODE_MESSAGES | Schema[] |
⚙ WI_MAX_SERVER_URL_LENGTH
| Constant | Type |
|---|
WI_MAX_SERVER_URL_LENGTH | 100 |
⚙ WI_QR_CODE
| Constant | Type |
|---|
WI_QR_CODE | Schema |
⚙ WIMSG_REQUEST
| Constant | Type |
|---|
WIMSG_REQUEST | 0 |
⚙ WIMSG_UPDATE_QR
| Constant | Type |
|---|
WIMSG_UPDATE_QR | 1 |
⚙ WIMSG_CONNECTION_TOKEN
| Constant | Type |
|---|
WIMSG_CONNECTION_TOKEN | 2 |
⚙ WIMSG_FORWARDED_ANSWER
| Constant | Type |
|---|
WIMSG_FORWARDED_ANSWER | 3 |
⚙ WIMSG_GET_CONNECTION_INFO
| Constant | Type |
|---|
WIMSG_GET_CONNECTION_INFO | 4 |
⚙ WIMSG_ANSWER
| Constant | Type |
|---|
WIMSG_ANSWER | 5 |
⚙ WIMSG_CONNECTION_INFO
| Constant | Type |
|---|
WIMSG_CONNECTION_INFO | 6 |
⚙ WIMSG_CONNECTION_ACCEPTED
| Constant | Type |
|---|
WIMSG_CONNECTION_ACCEPTED | 7 |
⚙ WIMSG_FORWARDED_REQUEST
| Constant | Type |
|---|
WIMSG_FORWARDED_REQUEST | 8 |
⚙ WI_MESSAGES
| Constant | Type |
|---|
WI_MESSAGES | Schema[] |
⚙ WIRQ_AUTH_BY_PUBLIC_KEY
| Constant | Type |
|---|
WIRQ_AUTH_BY_PUBLIC_KEY | 0 |
⚙ WIRQ_DATA_APPROVAL
| Constant | Type |
|---|
WIRQ_DATA_APPROVAL | 1 |
⚙ WIRQ_GET_EMAIL
| Constant | Type |
|---|
WIRQ_GET_EMAIL | 2 |
⚙ WIRQ_GET_USER_DATA
| Constant | Type |
|---|
WIRQ_GET_USER_DATA | 3 |
⚙ WI_REQUESTS
| Constant | Type |
|---|
WI_REQUESTS | Schema[] |
⚙ WI_ANSWERS
| Constant | Type |
|---|
WI_ANSWERS | Schema[] |
⚙ MSG_ANS_ERROR
| Constant | Type |
|---|
MSG_ANS_ERROR | 0 |
⚙ MSG_APPROVAL_HANDSHAKE
| Constant | Type |
|---|
MSG_APPROVAL_HANDSHAKE | 1 |
⚙ MSG_ACTOR_KEY
| Constant | Type |
|---|
MSG_ACTOR_KEY | 2 |
⚙ MSG_APPROVAL_SIGNATURE
| Constant | Type |
|---|
MSG_APPROVAL_SIGNATURE | 3 |
⚙ MSG_ANS_ACTOR_KEY_REQUIRED
| Constant | Type |
|---|
MSG_ANS_ACTOR_KEY_REQUIRED | 4 |
⚙ MSG_ANS_APPROVAL_DATA
| Constant | Type |
|---|
MSG_ANS_APPROVAL_DATA | 5 |
⚙ MSG_ANS_APPROVAL_SIGNATURE
| Constant | Type |
|---|
MSG_ANS_APPROVAL_SIGNATURE | 6 |
⚙ WALLET_OP_MESSAGES
| Constant | Type |
|---|
WALLET_OP_MESSAGES | Schema[] |
⚙ ALL_SCHEMAS
| Constant | Type |
|---|
ALL_SCHEMAS | { singles: Schema[]; collections: { label: string; list: Schema[]; }[]; } |
⚙ TOKEN_NAME
| Constant | Type |
|---|
TOKEN_NAME | "CMTS" |
⚙ TOKEN
⚙ CENTITOKEN
| Constant | Type |
|---|
CENTITOKEN | 1000 |
⚙ MILLITOKEN
| Constant | Type |
|---|
MILLITOKEN | 100 |
⚙ INITIAL_OFFER
| Constant | Type |
|---|
INITIAL_OFFER | number |
⚙ MINIMUM_GAS_PRICE
| Constant | Type |
|---|
MINIMUM_GAS_PRICE | 1 |
⚙ MAXIMUM_GAS_PRICE
| Constant | Type |
|---|
MAXIMUM_GAS_PRICE | number |
⚙ FIXED_GAS_FEE
| Constant | Type |
|---|
FIXED_GAS_FEE | 1000 |
⚙ GAS_PER_BYTE
| Constant | Type |
|---|
GAS_PER_BYTE | 1 |
⚙ GAS_UNIT
⚙ BK_PLUS
⚙ BK_PAID_TX_FEES
| Constant | Type |
|---|
BK_PAID_TX_FEES | 0 |
⚙ BK_PAID_BLOCK_FEES
| Constant | Type |
|---|
BK_PAID_BLOCK_FEES | 2 |
⚙ BK_SENT_ISSUANCE
| Constant | Type |
|---|
BK_SENT_ISSUANCE | 4 |
⚙ BK_SALE
⚙ BK_SENT_PAYMENT
| Constant | Type |
|---|
BK_SENT_PAYMENT | 8 |
⚙ BK_EARNED_TX_FEES
| Constant | Type |
|---|
BK_EARNED_TX_FEES | number |
⚙ BK_EARNED_BLOCK_FEES
| Constant | Type |
|---|
BK_EARNED_BLOCK_FEES | number |
⚙ BK_RECEIVED_ISSUANCE
| Constant | Type |
|---|
BK_RECEIVED_ISSUANCE | number |
⚙ BK_PURCHASE
| Constant | Type |
|---|
BK_PURCHASE | number |
⚙ BK_RECEIVED_PAYMENT
| Constant | Type |
|---|
BK_RECEIVED_PAYMENT | number |
⚙ BK_REF_BLOCK
| Constant | Type |
|---|
BK_REF_BLOCK | 0 |
⚙ BK_REF_MICROBLOCK
| Constant | Type |
|---|
BK_REF_MICROBLOCK | 1 |
⚙ BK_REF_SECTION
| Constant | Type |
|---|
BK_REF_SECTION | 2 |
⚙ BK_REFERENCES
| Constant | Type |
|---|
BK_REFERENCES | number[] |
⚙ BK_NAMES
| Constant | Type |
|---|
BK_NAMES | string[] |
⚙ ACCOUNT_BURNT_TOKENS
| Constant | Type |
|---|
ACCOUNT_BURNT_TOKENS | 0 |
⚙ ACCOUNT_STANDARD
| Constant | Type |
|---|
ACCOUNT_STANDARD | 1 |
⚙ ACCOUNT_BLOCK_FEES
| Constant | Type |
|---|
ACCOUNT_BLOCK_FEES | 2 |
⚙ ACCOUNT_LOCKED_TOKENS
| Constant | Type |
|---|
ACCOUNT_LOCKED_TOKENS | 3 |
⚙ ACCOUNT_NAMES
| Constant | Type |
|---|
ACCOUNT_NAMES | string[] |
⚙ ACCOUNT_ALLOWED_TRANSFERS
| Constant | Type |
|---|
ACCOUNT_ALLOWED_TRANSFERS | number[] |
⚙ ZERO
⚙ ONE
⚙ AT_LEAST_ONE
| Constant | Type |
|---|
AT_LEAST_ONE | 2 |
⚙ AT_MOST_ONE
⚙ ANY
⚙ CONSTRAINT_NAMES
| Constant | Type |
|---|
CONSTRAINT_NAMES | string[] |
⚙ ACCOUNT_SIG_ALGORITHM
| Constant | Type |
|---|
ACCOUNT_SIG_ALGORITHM | SectionType.ACCOUNT_SIG_ALGORITHM |
⚙ ACCOUNT_PUBLIC_KEY
| Constant | Type |
|---|
ACCOUNT_PUBLIC_KEY | SectionType.ACCOUNT_PUBLIC_KEY |
⚙ ACCOUNT_TOKEN_ISSUANCE
| Constant | Type |
|---|
ACCOUNT_TOKEN_ISSUANCE | SectionType.ACCOUNT_TOKEN_ISSUANCE |
⚙ ACCOUNT_CREATION
| Constant | Type |
|---|
ACCOUNT_CREATION | SectionType.ACCOUNT_CREATION |
⚙ ACCOUNT_TRANSFER
| Constant | Type |
|---|
ACCOUNT_TRANSFER | SectionType.ACCOUNT_TRANSFER |
⚙ ACCOUNT_SIGNATURE
| Constant | Type |
|---|
ACCOUNT_SIGNATURE | SectionType.ACCOUNT_SIGNATURE |
⚙ VN_SIG_ALGORITHM
| Constant | Type |
|---|
VN_SIG_ALGORITHM | 0 |
⚙ VN_DECLARATION
| Constant | Type |
|---|
VN_DECLARATION | 1 |
⚙ VN_DESCRIPTION
| Constant | Type |
|---|
VN_DESCRIPTION | 2 |
⚙ VN_RPC_ENDPOINT
| Constant | Type |
|---|
VN_RPC_ENDPOINT | 3 |
⚙ VN_NETWORK_INTEGRATION
| Constant | Type |
|---|
VN_NETWORK_INTEGRATION | 4 |
⚙ VN_SIGNATURE
| Constant | Type |
|---|
VN_SIGNATURE | 5 |
⚙ ORG_SIG_ALGORITHM
| Constant | Type |
|---|
ORG_SIG_ALGORITHM | SectionType.ORG_SIG_ALGORITHM |
⚙ ORG_PUBLIC_KEY
| Constant | Type |
|---|
ORG_PUBLIC_KEY | SectionType.ORG_PUBLIC_KEY |
⚙ ORG_DESCRIPTION
| Constant | Type |
|---|
ORG_DESCRIPTION | SectionType.ORG_DESCRIPTION |
⚙ ORG_SERVER
| Constant | Type |
|---|
ORG_SERVER | SectionType.ORG_SERVER |
⚙ ORG_SIGNATURE
| Constant | Type |
|---|
ORG_SIGNATURE | SectionType.ORG_SIGNATURE |
⚙ APP_SIG_ALGORITHM
| Constant | Type |
|---|
APP_SIG_ALGORITHM | SectionType.APP_SIG_ALGORITHM |
⚙ APP_DECLARATION
| Constant | Type |
|---|
APP_DECLARATION | SectionType.APP_DECLARATION |
⚙ APP_DESCRIPTION
| Constant | Type |
|---|
APP_DESCRIPTION | SectionType.APP_DESCRIPTION |
⚙ APP_SIGNATURE
| Constant | Type |
|---|
APP_SIGNATURE | SectionType.APP_SIGNATURE |
⚙ APP_LEDGER_SIG_ALGORITHM
| Constant | Type |
|---|
APP_LEDGER_SIG_ALGORITHM | SectionType.APP_LEDGER_SIG_ALGORITHM |
⚙ APP_LEDGER_PKE_ALGORITHM
| Constant | Type |
|---|
APP_LEDGER_PKE_ALGORITHM | SectionType.APP_LEDGER_PKE_ALGORITHM |
⚙ APP_LEDGER_DECLARATION
| Constant | Type |
|---|
APP_LEDGER_DECLARATION | SectionType.APP_LEDGER_DECLARATION |
⚙ APP_LEDGER_ACTOR_CREATION
| Constant | Type |
|---|
APP_LEDGER_ACTOR_CREATION | SectionType.APP_LEDGER_ACTOR_CREATION |
⚙ APP_LEDGER_CHANNEL_CREATION
| Constant | Type |
|---|
APP_LEDGER_CHANNEL_CREATION | SectionType.APP_LEDGER_CHANNEL_CREATION |
⚙ APP_LEDGER_SHARED_SECRET
| Constant | Type |
|---|
APP_LEDGER_SHARED_SECRET | SectionType.APP_LEDGER_SHARED_SECRET |
⚙ APP_LEDGER_CHANNEL_INVITATION
| Constant | Type |
|---|
APP_LEDGER_CHANNEL_INVITATION | SectionType.APP_LEDGER_CHANNEL_INVITATION |
⚙ APP_LEDGER_ACTOR_SUBSCRIPTION
| Constant | Type |
|---|
APP_LEDGER_ACTOR_SUBSCRIPTION | SectionType.APP_LEDGER_ACTOR_SUBSCRIPTION |
⚙ APP_LEDGER_PUBLIC_CHANNEL_DATA
| Constant | Type |
|---|
APP_LEDGER_PUBLIC_CHANNEL_DATA | SectionType.APP_LEDGER_PUBLIC_CHANNEL_DATA |
⚙ APP_LEDGER_PRIVATE_CHANNEL_DATA
| Constant | Type |
|---|
APP_LEDGER_PRIVATE_CHANNEL_DATA | SectionType.APP_LEDGER_PRIVATE_CHANNEL_DATA |
⚙ APP_LEDGER_AUTHOR
| Constant | Type |
|---|
APP_LEDGER_AUTHOR | SectionType.APP_LEDGER_AUTHOR |
⚙ APP_LEDGER_ENDORSER
| Constant | Type |
|---|
APP_LEDGER_ENDORSER | SectionType.APP_LEDGER_ENDORSER |
⚙ APP_LEDGER_ENDORSER_SIGNATURE
| Constant | Type |
|---|
APP_LEDGER_ENDORSER_SIGNATURE | SectionType.APP_LEDGER_ENDORSER_SIGNATURE |
⚙ APP_LEDGER_AUTHOR_SIGNATURE
| Constant | Type |
|---|
APP_LEDGER_AUTHOR_SIGNATURE | SectionType.APP_LEDGER_AUTHOR_SIGNATURE |
⚙ ALL_SECTIONS_SCHEMAS
| Constant | Type |
|---|
ALL_SECTIONS_SCHEMAS | { [x: number]: Schema; length: number; toString(): string; toLocaleString(): string; toLocaleString(locales: string or string[], options?: (NumberFormatOptions and DateTimeFormatOptions) or undefined): string; ... 30 more ...; [Symbol.unscopables]: { ...; }; } |
⚙ DEF
| Constant | Type |
|---|
DEF | Schema[][] |
⚙ WI_INVALID_SIGNATURE
| Constant | Type |
|---|
WI_INVALID_SIGNATURE | 0 |
⚙ Utf8Encoder
| Constant | Type |
|---|
Utf8Encoder | { encode: (str: any) => Uint8Array<ArrayBuffer>; decode: (array: any) => string; } |
⚙ Utils
| Constant | Type |
|---|
Utils | { numberToHexa: (value: number, size?: number or undefined) => string; truncateString: (str: string, size: number) => string; truncateStringMiddle: (str: string, leadingSize: number, trailingSize: number) => string; ... 14 more ...; getGenesisEpochInTimestamp: () => number; } |
⚙ Random
| Constant | Type |
|---|
Random | { getBytes: (n: any) => Uint8Array<ArrayBufferLike>; getInteger: (max: any) => number; getKey256: () => string; } |
⚙ Hashes
| Constant | Type |
|---|
Hashes | { sha256AsBinary: (data: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike>; sha256: (data: Uint8Array<ArrayBufferLike>) => string; sha512AsBinary: (data: any) => Uint8Array<...>; sha512: (data: any) => string; } |
⚙ Aes
| Constant | Type |
|---|
Aes | { encryptGcm: (key: any, data: any, iv: any) => Uint8Array<ArrayBufferLike>; decryptGcm: (key: any, data: any, iv: any) => false or Uint8Array<ArrayBufferLike>; } |
⚙ MLDsa
| Constant | Type |
|---|
MLDsa | { generateKeyPair: (seed: any) => { publicKey: Uint8Array<ArrayBufferLike>; privateKey: Uint8Array<ArrayBufferLike>; }; sign: (privateKey: any, data: any) => Uint8Array<...>; verify: (publicKey: any, data: any, signature: any) => boolean; } |
⚙ MLKem
| Constant | Type |
|---|
MLKem | { generateKeyPair: (seed: any) => { publicKey: Uint8Array<ArrayBufferLike>; secretKey: Uint8Array<ArrayBufferLike>; }; encapsulate: (publicKey: any) => { ...; }; decapsulate: (cipherText: any, privateKey: any) => Uint8Array<...>; } |
⚙ Secp256k1
| Constant | Type |
|---|
Secp256k1 | { publicKeyFromPrivateKey: (privateKey: any) => Bytes; sign: (privateKey: any, data: any) => Bytes; verify: (publicKey: any, data: any, signature: any) => boolean; } |
⚙ Crypto
| Constant | Type |
|---|
Crypto | { KEM_ALGORITHMS: { name: string; }[]; Random: { getBytes: (n: any) => Uint8Array<ArrayBufferLike>; getInteger: (max: any) => number; getKey256: () => string; }; Hashes: { ...; }; ... 7 more ...; ML_DSA: number; } |
⚙ BlockchainUtils
| Constant | Type |
|---|
BlockchainUtils | { checkHeaderList: (headers: any) => { valid: boolean; hashes: never[]; }; previousHashFromHeader: (header: any) => any; decodeMicroblockHeader: (data: Uint8Array<ArrayBufferLike>) => MicroBlockHeaderDto; ... 5 more ...; decodeVirtualBlockchainCustomState: (type: number, data: Uint8Array<...>) => object; } |
⚙ PathManager
| Constant | Type |
|---|
PathManager | { parsePrefix: (pathString: any) => { prefix: string; pathString: any; }; toNumericPath: (irObject: any, pathString: any) => never[]; fromNumericPath: (irObject: any, numericPath: any) => string; processCallback: (irObject: any, pathString: any, callback: any) => void; fromParents: (parents: any) => string; } |
⚙ MaskManager
| Constant | Type |
|---|
MaskManager | { getListFromRegex: (str: any, regex: any, substitution: any) => any; applyMask: (str: any, list: any) => { visible: any; hidden: any; }; getVisibleText: (visible: any) => any; getFullText: (visible: any, hidden: any) => any; } |
⚙ RPCNodeStatusResponseSchema
| Constant | Type |
|---|
RPCNodeStatusResponseSchema | ZodObject<{ jsonrpc: ZodLiteral<"2.0">; id: ZodNumber; result: ZodObject<{ node_info: ZodObject<{ protocol_version: ZodObject<{ p2p: ZodString; block: ZodString; app: ZodString; }, "strip", ZodTypeAny, { ...; }, { ...; }>; ... 6 more ...; other: ZodObject<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>; sync_info:... |
⚙ Base64
| Constant | Type |
|---|
Base64 | { BASE64: string; URL: string; encodeString: (str: any, alphabet?: string, padding?: boolean) => string; decodeString: (str: any, alphabet?: string) => string; encodeBinary: (bin: any, alphabet?: string, padding?: boolean) => string; decodeBinary: (str: any, alphabet?: string) => Uint8Array<...>; } |
⚙ Economics
| Constant | Type |
|---|
Economics | { getAccountTypeFromIdentifier: (accountIdentifier: Uint8Array<ArrayBufferLike>) => number; getSpecialAccountTypeIdentifier: (type: number) => Uint8Array<...>; isAllowedTransfer: (accountType: number, transferType: number) => number; } |
⚙ NewBlockEventSchema
| Constant | Type |
|---|
NewBlockEventSchema | ZodObject<{ jsonrpc: ZodLiteral<"2.0">; id: ZodNumber; result: ZodObject<{ query: ZodString; data: ZodObject<{ type: ZodLiteral<"tendermint/event/NewBlock">; value: ZodObject<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>; events: ZodObject<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>; }, "strip", ZodTypeAny... |
⚙ RADIX_CST
| Constant | Type |
|---|
RADIX_CST | { CACHE_HORIZON: number; HASH_SIZE: number; ROOT_ANCHORING_HASH: Uint8Array<ArrayBuffer>; } |
⚙ RadixUtils
| Constant | Type |
|---|
RadixUtils | { keyDifference: (depth: any, key: any, node: any) => 0 or 1; getHashList: (msk: any, node: any) => never[]; } |
⚙ RadixChecker
| Constant | Type |
|---|
RadixChecker | { verifyProof: (key: any, value: any, proof: any) => Promise<any>; } |
🏭 EncoderFactory
EncoderFactory is a class responsible for providing encoder instances.
It contains static utility methods to create and retrieve encoders for specific purposes.
Static Methods
⚙ defaultBytesToStringEncoder
Provides the default encoder for converting Uint8Array bytes to a hexadecimal string representation.
| Method | Type |
|---|
defaultBytesToStringEncoder | () => EncoderInterface<Uint8Array<ArrayBufferLike>, string> |
⚙ bytesToBase64Encoder
Provides an encoder for converting Uint8Array bytes to a base64 string representation.
| Method | Type |
|---|
bytesToBase64Encoder | () => EncoderInterface<Uint8Array<ArrayBufferLike>, string> |
⚙ bytesToHexEncoder
Retrieves an encoder instance that converts bytes (Uint8Array) into a hexadecimal string representation.
| Method | Type |
|---|
bytesToHexEncoder | () => EncoderInterface<Uint8Array<ArrayBufferLike>, string> |
🏭 BytesToBase64Encoder
A class that implements an encoder to convert between byte arrays (Uint8Array)
and base64 string representations. It provides methods for both encoding
byte arrays to base64 strings and decoding base64 strings back to byte arrays.
This class adheres to the EncoderInterface interface, parameterized with
Uint8Array for the input/output data type and string for the encoded format.
Methods:
- encode: Converts a given Uint8Array into its base64 string equivalent.
- decode: Converts a base64 string back into a Uint8Array representation.
Methods
⚙ decode
Decodes a base64 string into a Uint8Array.
| Method | Type |
|---|
decode | (data: string) => Uint8Array<ArrayBufferLike> |
Parameters:
data: The base64 string to decode.
⚙ encode
Encodes the given Uint8Array data into a base64 string representation.
| Method | Type |
|---|
encode | (data: Uint8Array<ArrayBufferLike>) => string |
Parameters:
data: - The byte array to be encoded.
🏭 BytesToHexEncoder
A class that implements an encoder to convert between byte arrays (Uint8Array)
and hexadecimal string representations. It provides methods for both encoding
byte arrays to hex strings and decoding hex strings back to byte arrays.
This class adheres to the EncoderInterface interface, parameterized with
Uint8Array for the input/output data type and string for the encoded format.
Methods:
- encode: Converts a given Uint8Array into its hexadecimal string equivalent.
- decode: Converts a hexadecimal string back into a Uint8Array representation.
Methods
⚙ decode
Decodes a hexadecimal string into a Uint8Array.
| Method | Type |
|---|
decode | (data: string) => Uint8Array<ArrayBufferLike> |
Parameters:
data: The hexadecimal string to decode.
⚙ encode
Encodes the given Uint8Array data into a hexadecimal string representation.
| Method | Type |
|---|
encode | (data: Uint8Array<ArrayBufferLike>) => string |
Parameters:
data: - The byte array to be encoded.
🏭 BasePrivateSignatureKey
Abstract base class representing a private signature key. It provides
methods for retrieving the private key, generating signatures, and
accessing associated metadata and functionalities related to the
signature scheme.
Methods
⚙ getPrivateKeyAsString
| Method | Type |
|---|
getPrivateKeyAsString | (encoder?: EncoderInterface<Uint8Array<ArrayBufferLike>, string>) => string |
⚙ getSignatureAlgorithmId
| Method | Type |
|---|
getSignatureAlgorithmId | () => SignatureAlgorithmId |
⚙ getSignatureSize
| Method | Type |
|---|
getSignatureSize | () => number |
🏭 BasePublicSignatureKey
Abstract class representing the base implementation of a public signature key.
This class provides a partial implementation for handling public keys and signing operations.
It serves as a foundation for specific public signature key implementations.
Methods
⚙ getPublicKeyAsString
| Method | Type |
|---|
getPublicKeyAsString | (encoder?: EncoderInterface<Uint8Array<ArrayBufferLike>, string>) => string |
⚙ getSignatureSize
| Method | Type |
|---|
getSignatureSize | () => number |
⚙ getSignatureAlgorithmId
| Method | Type |
|---|
getSignatureAlgorithmId | () => SignatureAlgorithmId |
🏭 AES256GCMSymmetricEncryptionScheme
Methods
⚙ getSymmetricEncryptionSchemeId
| Method | Type |
|---|
getSymmetricEncryptionSchemeId | () => number |
⚙ getSupportedKeyLengths
| Method | Type |
|---|
getSupportedKeyLengths | () => number[] |
⚙ getDefaultKeyLength
| Method | Type |
|---|
getDefaultKeyLength | () => number |
🏭 AES256GCMSymmetricEncryptionKey
This class provides methods for creating, managing, and utilizing a symmetric encryption key specifically
designed for AES-256-GCM encryption. It implements the SymmetricEncryptionKey interface, enabling compatibility
with other cryptographic operations requiring symmetric key encryption.
AES-256-GCM (Advanced Encryption Standard with 256-bit keys in Galois/Counter Mode) ensures high-level cryptographic
security with authenticated encryption, combining data confidentiality with integrity protection.
Static Methods
⚙ generate
Generates a new AES-256-GCM symmetric encryption key.
| Method | Type |
|---|
generate | () => AES256GCMSymmetricEncryptionKey |
⚙ createFromBytes
Creates an instance of AES256GCMSymmetricEncryptionKey from the given byte array.
| Method | Type |
|---|
createFromBytes | (keyBytes: Uint8Array<ArrayBufferLike>) => AES256GCMSymmetricEncryptionKey |
Parameters:
keyBytes: - The byte array representing the encryption key.
Methods
⚙ getRawSecretKey
Retrieves the raw secret key as a Uint8Array.
This method provides access to the underlying key data stored in this instance.
| Method | Type |
|---|
getRawSecretKey | () => Uint8Array<ArrayBufferLike> |
⚙ getSymmetricEncryptionSchemeId
Retrieves the identifier of the encryption algorithm being used.
| Method | Type |
|---|
getSymmetricEncryptionSchemeId | () => number |
⚙ encrypt
Encrypts the given plaintext using AES-GCM encryption.
A random initialization vector (IV) is generated for each encryption operation.
The result is a concatenation of the IV and the encrypted ciphertext.
| Method | Type |
|---|
encrypt | (plaintext: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
Parameters:
plaintext: - The plaintext data to be encrypted.
⚙ decrypt
Decrypts the provided ciphertext using the GCM block cipher mode with the instance's key.
| Method | Type |
|---|
decrypt | (ciphertext: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
Parameters:
ciphertext: - The encrypted data to be decrypted. The first 12 bytes are assumed to be the initialization vector (IV), and the rest is the encrypted content.
🏭 ExtendedSymmetricEncryptionKey
A class that extends the functionality of a symmetric encryption key.
This class enables encryption and decryption of strings,
while delegating the underlying encryption and decryption operations to a wrapped key.
Methods
⚙ encryptString
Encrypts a given plaintext string and returns the encrypted data as a Base64-encoded string.
| Method | Type |
|---|
encryptString | (plaintext: string) => string |
Parameters:
plaintext: - The plain text string to be encrypted.
⚙ decryptString
Decrypts a given string that is encoded in Base64 format.
| Method | Type |
|---|
decryptString | (ciphertext: string) => string |
Parameters:
ciphertext: The Base64 encoded string to be decrypted.
⚙ getSymmetricEncryptionSchemeId
Retrieves the identifier of the encryption algorithm used.
| Method | Type |
|---|
getSymmetricEncryptionSchemeId | () => number |
⚙ encrypt
Encrypts the given plaintext using the wrapped key.
| Method | Type |
|---|
encrypt | (plaintext: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
Parameters:
plaintext: - The data to be encrypted.
⚙ decrypt
Decrypts the provided ciphertext using the wrapped key.
| Method | Type |
|---|
decrypt | (ciphertext: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
Parameters:
ciphertext: - The ciphertext to be decrypted.
⚙ getRawSecretKey
Retrieves the raw secret key from the wrapped key.
| Method | Type |
|---|
getRawSecretKey | () => Uint8Array<ArrayBufferLike> |
🏭 MLDSA65SignatureScheme
Methods
⚙ getSignatureAlgorithmId
| Method | Type |
|---|
getSignatureAlgorithmId | () => number |
⚙ getSignatureSize
| Method | Type |
|---|
getSignatureSize | () => number |
🏭 MLDSA65PublicSignatureKey
Represents a public signature key for the MLDSA65 signature scheme.
This class provides functionalities to verify digital signatures and retrieve
the raw public key used in the signing process. It extends the MLDSA44SignatureScheme
and implements the PublicSignatureKey interface.
Constructors
public: Constructs an instance of the class.
Parameters:
publicKey: - The public key used for initialization.
Methods
⚙ getPublicKeyAsString
| Method | Type |
|---|
getPublicKeyAsString | (encoder?: EncoderInterface<Uint8Array<ArrayBufferLike>, string>) => string |
⚙ verify
Verifies the provided data and its signature using the stored public key.
| Method | Type |
|---|
verify | (data: Uint8Array<ArrayBufferLike>, signature: Uint8Array<ArrayBufferLike>) => boolean |
Parameters:
data: - The data to be verified.
signature: - The signature of the data to be verified.
⚙ getPublicKeyAsBytes
Retrieves the raw public key as a Uint8Array.
| Method | Type |
|---|
getPublicKeyAsBytes | () => Uint8Array<ArrayBufferLike> |
⚙ getScheme
| Method | Type |
|---|
getScheme | () => SignatureScheme |
🏭 MLDSA65PrivateSignatureKey
Represents a private signature key for the MLDSA65 signature scheme.
Constructors
public: Constructs a new instance of the class, initializes the public and private keys
using the provided seed value.
Parameters:
seed: - The seed value used to generate key pairs.
Static Methods
⚙ gen
Generates and returns a new private signature key.
This method creates a private signature key instance using a randomly generated 32-byte seed.
| Method | Type |
|---|
gen | () => MLDSA65PrivateSignatureKey |
Methods
⚙ getPrivateKeyAsString
| Method | Type |
|---|
getPrivateKeyAsString | (encoder: EncoderInterface<Uint8Array<ArrayBufferLike>, string>) => string |
⚙ getPublicKey
Retrieves the public signature key associated with this instance.
| Method | Type |
|---|
getPublicKey | () => MLDSA65PublicSignatureKey |
⚙ getPrivateKeyAsBytes
| Method | Type |
|---|
getPrivateKeyAsBytes | () => Uint8Array<ArrayBufferLike> |
⚙ sign
Signs the provided data using the signature key.
| Method | Type |
|---|
sign | (data: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
Parameters:
data: - The data to be signed.
⚙ getScheme
| Method | Type |
|---|
getScheme | () => SignatureScheme |
🏭 Sha256CryptographicHash
Methods
⚙ getHashSchemeId
| Method | Type |
|---|
getHashSchemeId | () => CryptographicHashAlgorithmId |
⚙ hash
| Method | Type |
|---|
hash | (data: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
🏭 Secp256k1SignatureScheme
The Secp256k1SignatureScheme class implements the SignatureScheme interface and provides
functionality specific to the Secp256k1 elliptic curve cryptographic signature scheme.
Methods
⚙ getSignatureAlgorithmId
| Method | Type |
|---|
getSignatureAlgorithmId | () => number |
⚙ getSignatureSize
| Method | Type |
|---|
getSignatureSize | () => number |
🏭 Secp256k1PublicSignatureKey
A class representing a Secp256k1 public signature key. This class is responsible for
handling the public key operations such as retrieving the raw public key and verifying
signatures against specified data.
This class extends the Secp256k1SignatureScheme and implements the PublicSignatureKey interface.
Methods
⚙ getPublicKeyAsBytes
| Method | Type |
|---|
getPublicKeyAsBytes | () => Uint8Array<ArrayBufferLike> |
⚙ verify
| Method | Type |
|---|
verify | (data: Uint8Array<ArrayBufferLike>, signature: Uint8Array<ArrayBufferLike>) => boolean |
⚙ getScheme
| Method | Type |
|---|
getScheme | () => SignatureScheme |
🏭 Secp256k1PrivateSignatureKey
Represents a private signature key using the Secp256k1 curve. This class extends
from Secp256k1PublicSignatureKey and implements the PrivateSignatureKey interface.
It provides functionality to generate a private key, derive its corresponding
public key, and sign data.
Methods enable key generation, retrieving the associated public key,
and signing cryptographic hashes.
Static Methods
⚙ gen
Generates and returns a new instance of Secp256k1PrivateSignatureKey
initialized with a randomly generated private key.
| Method | Type |
|---|
gen | () => Secp256k1PrivateSignatureKey |
⚙ genFromSeed
Generates a Secp256k1 private signature key from a given seed.
| Method | Type |
|---|
genFromSeed | (seed: Uint8Array<ArrayBufferLike>) => Secp256k1PrivateSignatureKey |
Parameters:
seed: - The seed used to generate the private key.
Methods
⚙ getPrivateKeyAsString
| Method | Type |
|---|
getPrivateKeyAsString | (encoder: EncoderInterface<Uint8Array<ArrayBufferLike>, string>) => string |
⚙ getPublicKey
| Method | Type |
|---|
getPublicKey | () => PublicSignatureKey |
⚙ getPrivateKeyAsBytes
| Method | Type |
|---|
getPrivateKeyAsBytes | () => Uint8Array<ArrayBufferLike> |
⚙ sign
| Method | Type |
|---|
sign | (data: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
⚙ getScheme
| Method | Type |
|---|
getScheme | () => SignatureScheme |
🏭 PasswordBasedKeyDerivationFunction
Methods
⚙ deriveKeyNoSalt
| Method | Type |
|---|
deriveKeyNoSalt | (password: string, keyLength: number) => Uint8Array<ArrayBufferLike> |
🏭 PBKDF2
Methods
⚙ getKeyDerivationFunctionAlgorithmId
| Method | Type |
|---|
getKeyDerivationFunctionAlgorithmId | () => PasswordBasedKeyDerivationFunctionAlgorithmId |
⚙ deriveKey
| Method | Type |
|---|
deriveKey | (password: string, salt: string, keyLength: number) => Uint8Array<ArrayBufferLike> |
🏭 KeyDerivationFunction
Methods
⚙ deriveKeyNoSalt
| Method | Type |
|---|
deriveKeyNoSalt | (inputKeyingMaterial: Uint8Array<ArrayBufferLike>, info: Uint8Array<ArrayBufferLike>, keyLength: number) => Uint8Array<...> |
🏭 HKDF
Methods
⚙ getKeyDerivationFunctionAlgorithmId
| Method | Type |
|---|
getKeyDerivationFunctionAlgorithmId | () => KeyDerivationFunctionAlgorithmId |
⚙ deriveKey
| Method | Type |
|---|
deriveKey | (inputKeyingMaterial: Uint8Array<ArrayBufferLike>, salt: Uint8Array<ArrayBufferLike>, info: Uint8Array<ArrayBufferLike>, keyLength: number) => Uint8Array<...> |
🏭 AbstractPublicKeyEncryptionScheme
🏭 AbstractPublicEncryptionKey
Methods
⚙ encode
| Method | Type |
|---|
encode | (encoder?: EncoderInterface<Uint8Array<ArrayBufferLike>, string>) => string |
⚙ getSchemeId
| Method | Type |
|---|
getSchemeId | () => PublicKeyEncryptionAlgorithmId |
🏭 AbstractPrivateDecryptionKey
Methods
⚙ encode
| Method | Type |
|---|
encode | (encoder?: EncoderInterface<Uint8Array<ArrayBufferLike>, string>) => string |
🏭 MlKemPublicKeyEncryptionScheme
Methods
⚙ getSchemeId
Returns the identifier of the scheme.
| Method | Type |
|---|
getSchemeId | () => PublicKeyEncryptionAlgorithmId |
⚙ getSupportedSeedLength
| Method | Type |
|---|
getSupportedSeedLength | () => number[] |
🏭 MlKemCiphertextEncoder
Methods
⚙ encode
| Method | Type |
|---|
encode | (encryptedSharedSecret: Uint8Array<ArrayBufferLike>, encryptedMessage: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
⚙ decode
| Method | Type |
|---|
decode | (ciphertext: Uint8Array<ArrayBufferLike>) => MlKemCiphertextType |
🏭 MlKemPublicEncryptionKey
Methods
⚙ encrypt
| Method | Type |
|---|
encrypt | (message: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
⚙ getRawPublicKey
| Method | Type |
|---|
getRawPublicKey | () => Uint8Array<ArrayBufferLike> |
⚙ getScheme
| Method | Type |
|---|
getScheme | () => AbstractPublicKeyEncryptionScheme |
🏭 MlKemPrivateDecryptionKey
Static Methods
⚙ genFromSeed
Generates a private decryption key from a seed.
| Method | Type |
|---|
genFromSeed | (seed: Uint8Array<ArrayBufferLike>) => MlKemPrivateDecryptionKey |
⚙ gen
Generates a random private decryption key.
| Method | Type |
|---|
gen | () => MlKemPrivateDecryptionKey |
Methods
⚙ getSupportedSeedLength
Returns the supported seed lengths for the scheme.
| Method | Type |
|---|
getSupportedSeedLength | () => number[] |
⚙ getScheme
| Method | Type |
|---|
getScheme | () => MlKemPublicKeyEncryptionScheme |
⚙ getPublicKey
| Method | Type |
|---|
getPublicKey | () => MlKemPublicEncryptionKey |
⚙ getRawPrivateKey
| Method | Type |
|---|
getRawPrivateKey | () => Uint8Array<ArrayBufferLike> |
⚙ decrypt
| Method | Type |
|---|
decrypt | (ciphertext: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
🏭 CryptoSchemeFactory
Static Methods
⚙ createPrivateSignatureKey
| Method | Type |
|---|
createPrivateSignatureKey | (schemeId: number, seed: Uint8Array<ArrayBufferLike>) => PrivateSignatureKey |
⚙ createVirtualBlockchainPrivateSignature
| Method | Type |
|---|
createVirtualBlockchainPrivateSignature | (kdf: KeyDerivationFunction, schemeId: SignatureAlgorithmId, walletSeed: Uint8Array<ArrayBufferLike>, vbSeed: Uint8Array<...>) => PrivateSignatureKey |
⚙ deriveKeyFromPassword
Derives a symmetric encryption key from the provided password using the specified key derivation and encryption algorithms.
| Method | Type |
|---|
deriveKeyFromPassword | (password: string, pbkdfAlgorithmId?: PasswordBasedKeyDerivationFunctionAlgorithmId, symmetricEncryptionSchemeId?: SymmetricEncryptionAlgorithmId) => SymmetricEncryptionKey |
Parameters:
password: - The password from which the encryption key will be derived.
pbkdfAlgorithmId: - The ID of the password-based key derivation function algorithm to use.
symmetricEncryptionSchemeId: - The ID of the symmetric encryption algorithm to create the key for.
⚙ createPublicSignatureKey
| Method | Type |
|---|
createPublicSignatureKey | (schemeId: number, publicKey: Uint8Array<ArrayBufferLike>) => PublicSignatureKey |
⚙ createPublicEncryptionKey
| Method | Type |
|---|
createPublicEncryptionKey | (schemeId: number, publicKey: Uint8Array<ArrayBufferLike>) => AbstractPublicEncryptionKey |
⚙ createPrivateDecryptionKey
| Method | Type |
|---|
createPrivateDecryptionKey | (schemeId: number, privateKeyOrSeed: Uint8Array<ArrayBufferLike>) => AbstractPrivateDecryptionKey |
⚙ createSymmetricEncryptionKey
| Method | Type |
|---|
createSymmetricEncryptionKey | (symmetricEncryptionSchemeId: number, rawKey: Uint8Array<ArrayBufferLike>) => SymmetricEncryptionKey |
⚙ createSymmetricEncryptionKeyScheme
| Method | Type |
|---|
createSymmetricEncryptionKeyScheme | (symmetricEncryptionSchemeId: number) => SymmetricEncryptionKeyScheme |
⚙ createCryptographicHash
| Method | Type |
|---|
createCryptographicHash | (schemeId: CryptographicHashAlgorithmId) => CryptographicHash |
⚙ createDefaultCryptographicHash
| Method | Type |
|---|
createDefaultCryptographicHash | () => CryptographicHash |
⚙ createDefaultPBKDF
| Method | Type |
|---|
createDefaultPBKDF | () => PasswordBasedKeyDerivationFunction |
⚙ createDefaultKDF
| Method | Type |
|---|
createDefaultKDF | () => HKDF |
Methods
⚙ createVirtualBlockchainPrivateSignatureScheme
| Method | Type |
|---|
createVirtualBlockchainPrivateSignatureScheme | (schemeId: SignatureAlgorithmId, walletSeed: Uint8Array<ArrayBufferLike>, vbSeed: Uint8Array<ArrayBufferLike>) => PrivateSignatureKey |
⚙ createDecapsulationKey
| Method | Type |
|---|
createDecapsulationKey | (schemeId: number, walletSeed: Uint8Array<ArrayBufferLike>) => DecapsulationKey |
⚙ createVirtualBlockchainDecapsulationKey
| Method | Type |
|---|
createVirtualBlockchainDecapsulationKey | (schemeId: number, walletSeed: Uint8Array<ArrayBufferLike>, vbSeed: Uint8Array<ArrayBufferLike>) => DecapsulationKey |
⚙ createPublicSignatureKey
| Method | Type |
|---|
createPublicSignatureKey | (schemeId: number, publicKey: Uint8Array<ArrayBufferLike>) => PublicSignatureKey |
⚙ createSymmetricEncryptionKey
Creates a symmetric encryption key based on the provided encryption scheme ID and raw key data.
| Method | Type |
|---|
createSymmetricEncryptionKey | (symmetricEncryptionSchemeId: number, rawKey: Uint8Array<ArrayBufferLike>) => SymmetricEncryptionKey |
Parameters:
symmetricEncryptionSchemeId: - The ID of the symmetric encryption scheme to use.
rawKey: - The raw key data used to create the symmetric encryption key.
🏭 HCVDecoded
HCVDecoded class represents the result of decoding an HCV string.
It provides methods to access the keys and value, and to check if a given key sequence matches.
Constructors
public: Creates a new HCVDecoded instance.
Parameters:
keys: - The list of keys from the decoded string
value: - The value from the decoded string
Methods
⚙ matchesKeys
Checks if the given keys match the keys in this decoded object.
| Method | Type |
|---|
matchesKeys | (...keys: string[]) => boolean |
Parameters:
keys: - The keys to check against
Returns:
True if the keys match, false otherwise
⚙ getKeys
Gets the list of keys from the decoded string.
| Method | Type |
|---|
getKeys | () => string[] |
Returns:
The list of keys
⚙ getValue
Gets the value from the decoded string.
| Method | Type |
|---|
getValue | () => string |
Returns:
The value
🏭 HCVCodec
HCVCodec (Hierarchical Context Value Codec) provides methods to encode and decode
strings in the format key1:key2:...
.
Static Methods
⚙ encode
Encodes a list of keys and a value into a string in the format key1:key2:...
.
The last parameter is treated as the value, and all preceding parameters are treated as keys.
| Method | Type |
|---|
encode | (...args: string[]) => string |
Parameters:
args: - The keys followed by the value (at least one key and one value)
Returns:
The encoded string
⚙ decode
Decodes a string in the format key1:key2:...
into an HCVDecoded object.
| Method | Type |
|---|
decode | (encoded: string) => HCVDecoded |
Parameters:
encoded: - The encoded string to decode
Returns:
An HCVDecoded object containing the keys and value
🏭 HCVSignatureEncoder
Static Methods
⚙ createHexHCVSignatureEncoder
| Method | Type |
|---|
createHexHCVSignatureEncoder | () => HCVSignatureEncoder |
⚙ createBase64HCVSignatureEncoder
| Method | Type |
|---|
createBase64HCVSignatureEncoder | () => HCVSignatureEncoder |
Methods
⚙ decodeMessage
Decodes the provided message into a Uint8Array.
| Method | Type |
|---|
decodeMessage | (message: string) => Uint8Array<ArrayBufferLike> |
⚙ decodePrivateKey
Decodes the provided private key and returns a private signature key object.
| Method | Type |
|---|
decodePrivateKey | (privateKey: string) => PrivateSignatureKey |
⚙ decodePublicKey
Decodes a given public key object into a public signature key.
| Method | Type |
|---|
decodePublicKey | (publicKey: string) => PublicSignatureKey |
⚙ decodeSignature
Decodes the provided signature into a Uint8Array.
| Method | Type |
|---|
decodeSignature | (signature: string) => Uint8Array<ArrayBufferLike> |
⚙ encodeMessage
Encodes a given message into a specific format.
| Method | Type |
|---|
encodeMessage | (message: Uint8Array<ArrayBufferLike>) => string |
⚙ encodePrivateKey
Encodes the given private key into a specific format.
| Method | Type |
|---|
encodePrivateKey | (privateKey: PrivateSignatureKey) => string |
⚙ encodePublicKey
Encodes the given public signature key into a specific format.
| Method | Type |
|---|
encodePublicKey | (publicKey: PublicSignatureKey) => string |
⚙ encodeSignature
Encodes a given digital signature into a specific format.
| Method | Type |
|---|
encodeSignature | (signature: Uint8Array<ArrayBufferLike>) => string |
🏭 BytesSignatureEncoder
Class responsible for encoding and decoding digital signature-related data.
Provides methods to convert signatures, public keys, and private keys between raw formats and serialized representations.
Methods
⚙ encodeSignature
Encodes a given digital signature into a specific format.
| Method | Type |
|---|
encodeSignature | (signature: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
⚙ decodeSignature
Decodes the provided signature into a Uint8Array.
| Method | Type |
|---|
decodeSignature | (signature: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
⚙ encodeMessage
Encodes a given message into a specific format.
| Method | Type |
|---|
encodeMessage | (message: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
⚙ decodeMessage
Decodes the provided message into a Uint8Array.
| Method | Type |
|---|
decodeMessage | (message: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike> |
⚙ encodePublicKey
Encodes the given public signature key into a specific format.
| Method | Type |
|---|
encodePublicKey | (publicKey: PublicSignatureKey) => Uint8Array<ArrayBufferLike> |
⚙ decodePublicKey
Decodes a given public key object into a public signature key.
| Method | Type |
|---|
decodePublicKey | (publicKey: Uint8Array<ArrayBufferLike>) => PublicSignatureKey |
⚙ encodePrivateKey
Encodes the given private key into a specific format.
| Method | Type |
|---|
encodePrivateKey | (privateKey: PrivateSignatureKey) => Uint8Array<ArrayBufferLike> |
⚙ decodePrivateKey
Decodes the provided private key and returns a private signature key object.
| Method | Type |
|---|
decodePrivateKey | (privateKey: Uint8Array<ArrayBufferLike>) => PrivateSignatureKey |
🏭 StringSignatureEncoder
The StringSignatureEncoder class provides encoding and decoding methods for public keys,
private keys, and digital signatures. It acts as an intermediate layer, converting between
string representations and their binary counterparts using a combination of a bytes encoder
and another signature encoder.
Constructors
public: Constructs an instance of the class with the provided encoders.
Parameters:
bytesEncoder: - The encoder used to encode or decode bytes.
signatureEncoder: - The encoder used to handle signature encoding. Defaults to a new instance of BytesSignatureEncoder.
Static Methods
⚙ defaultStringSignatureEncoder
Provides the default encoder for string signatures by utilizing the default bytes-to-string encoder
from the EncoderFactory.
| Method | Type |
|---|
defaultStringSignatureEncoder | () => SignatureEncoderInterface<string> |
⚙ defaultBytesSignatureEncoder
| Method | Type |
|---|
defaultBytesSignatureEncoder | () => BytesSignatureEncoder |
Methods
⚙ encodePublicKey
Encodes a given public signature key into its string representation.
| Method | Type |
|---|
encodePublicKey | (publicKey: PublicSignatureKey) => string |
Parameters:
publicKey: - The public signature key to be encoded.
⚙ decodePublicKey
Decodes the provided public key string into a PublicSignatureKey object.
| Method | Type |
|---|
decodePublicKey | (publicKey: string) => PublicSignatureKey |
Parameters:
publicKey: - The public key string to be decoded.
⚙ decodePrivateKey
Decodes a given private key from its string representation to a PrivateSignatureKey object.
| Method | Type |
|---|
decodePrivateKey | (privateKey: string) => PrivateSignatureKey |
Parameters:
privateKey: - The private key in its encoded string format to be decoded.
⚙ decodeSignature
Decodes a given signature string into a Uint8Array.
| Method | Type |
|---|
decodeSignature | (signature: string) => Uint8Array<ArrayBufferLike> |
Parameters:
signature: - The signature string to decode.
⚙ encodePrivateKey
Encodes a given private key into a string format.
| Method | Type |
|---|
encodePrivateKey | (privateKey: PrivateSignatureKey) => string |
Parameters:
privateKey: - The private key to be encoded.
⚙ encodeSignature
Encodes a given signature into a string format.
| Method | Type |
|---|
encodeSignature | (signature: Uint8Array<ArrayBufferLike>) => string |
Parameters:
signature: - The signature to be encoded, represented as a Uint8Array.
⚙ decodeMessage
Decodes the given encoded message string into a Uint8Array.
| Method | Type |
|---|
decodeMessage | (message: string) => Uint8Array<ArrayBufferLike> |
Parameters:
message: - The encoded message as a string.
⚙ encodeMessage
Encodes a given Uint8Array message into a string format.
| Method | Type |
|---|
encodeMessage | (message: Uint8Array<ArrayBufferLike>) => string |
Parameters:
message: - The message to be encoded as a Uint8Array.
🏭 Hash
Represents a hash object that allows encoding and creation from a string or Uint8Array.
Constructors
public: Constructs a new instance of the class with the provided hash value.
Parameters:
hash: - The hash value to be used for this instance.
Static Methods
⚙ from
Creates a new instance of Hash from a string or Uint8Array.
const hash = Hash.from('0x1234567890abcdef');
const hash = Hash.from(new Uint8Array([0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef]));
| Method | Type |
|---|
from | (hash: string or Uint8Array<ArrayBufferLike>) => Hash |
Parameters:
hash: - The hash input, which can either be a string or a Uint8Array.
Methods
⚙ encode
Encodes the current hash using the provided encoder.
const hash = Hash.from('0x1234567890abcdef');
const hexEncoder = EncoderFactory.bytesToHexEncoder();
const hexString = hash.encode(hexEncoder); // '0x1234567890abcdef'
const hexString = hash.encode(); // '0x1234567890abcdef'
| Method | Type |
|---|
encode | (encoder?: EncoderInterface<Uint8Array<ArrayBufferLike>, string>) => string |
Parameters:
encoder: - The encoder used to encode the hash. Defaults to a BytesToHexEncoder.
⚙ toBytes
Converts and retrieves the hash value as a Uint8Array.
const hash = Hash.from('0x1234567890abcdef');
const bytes = hash.toBytes(); // Uint8Array([0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef])
| Method | Type |
|---|
toBytes | () => Uint8Array<ArrayBufferLike> |
⚙ equals
Checks equality of this hash with respect to another hash provided in parameter.
| Method | Type |
|---|
equals | (other: Hash) => boolean |
🏭 IllegalUsageError
🏭 IllegalParameterError
🏭 IllegalStateError
🏭 CarmentisError
Static Methods
⚙ isCarmentisError
| Method | Type |
|---|
isCarmentisError | (error: any) => error is CarmentisError |
Methods
⚙ getErrorCode
| Method | Type |
|---|
getErrorCode | () => CarmentisErrorCode |
🏭 EmptyBlockError
🏭 InternalError
🏭 TypeCheckingFailureError
🏭 NodeError
🏭 NodeConnectionRefusedError
🏭 NodeEndpointClosedWhileCatchingUpError
🏭 EconomicsError
🏭 InvalidTokenUnitError
🏭 BlockchainError
🏭 NotImplementedError
🏭 MicroBlockNotFoundInVirtualBlockchainAtHeightError
🏭 MicroBlockNotFoundError
🏭 MicroBlockNotFoundInBlockError
🏭 ActorAlreadyDefinedError
🏭 ChannelAlreadyDefinedError
🏭 ActorNotDefinedError
🏭 ChannelNotDefinedError
🏭 ProofVerificationFailedError
🏭 SectionError
🏭 SectionNotFoundError
🏭 AccountNotFoundForPublicKeyError
🏭 AccountNotFoundForAccountHashError
🏭 OrganizationNotFoundError
🏭 ApplicationNotFoundError
🏭 ApplicationLedgerNotFoundError
🏭 ValidatorNodeNotFoundError
🏭 AccountNotFoundForPublicKeyHashError
🏭 VirtualBlockchainNotFoundError
🏭 TypeManager
Static Methods
⚙ getType
| Method | Type |
|---|
getType | (value: any) => 0 or 1 or 2 or 3 or 4 or 5 or 6 or 12 |
⚙ isJsonType
| Method | Type |
|---|
isJsonType | (type: any) => number |
🏭 TypeChecker
Methods
⚙ check
Tests whether this.value conforms to this.definition.
| Method | Type |
|---|
check | () => void |
⚙ isString
| Method | Type |
|---|
isString | () => void |
⚙ isNumber
| Method | Type |
|---|
isNumber | () => void |
⚙ isBoolean
| Method | Type |
|---|
isBoolean | () => void |
⚙ isInteger
| Method | Type |
|---|
isInteger | () => void |
⚙ isUnsignedInteger
| Method | Type |
|---|
isUnsignedInteger | (nBits: any) => void |
⚙ isBinary
| Method | Type |
|---|
isBinary | (size: any) => void |
⚙ isHashString
| Method | Type |
|---|
isHashString | () => void |
⚙ checkSize
| Method | Type |
|---|
checkSize | (actualSize: any, expectedSize: any) => void |
Properties
⚙ basicType
⚙ definition
| Property | Type |
|---|
definition | any |
⚙ value
🏭 WriteStream
Methods
⚙ clear
| Method | Type |
|---|
clear | () => void |