UNPKG

@taquito/utils

Version:

Encoding, crypto, and utility helpers for Taquito.

79 lines (78 loc) 2.23 kB
/** * base58 name to prefix mapping */ export declare enum PrefixV2 { BlockHash = "B", OperationHash = "o", OperationListHash = "Lo", OperationListListHash = "LLo", ProtocolHash = "P", ContextHash = "Co", BlockMetadataHash = "bm", OperationMetadataHash = "r", OperationMetadataListHash = "Lr", OperationMetadataListListHash = "LLr", Ed25519PublicKeyHash = "tz1", Secp256k1PublicKeyHash = "tz2", P256PublicKeyHash = "tz3", ContractHash = "KT1", BlindedPublicKeyHash = "btz1", BLS12_381PublicKeyHash = "tz4", TXRollupAddress = "txr1", ZkRollupHash = "epx1", ScRollupHash = "scr1", SmartRollupHash = "sr1", CryptoboxPublicKeyHash = "id", Ed25519Seed = "edsk", Ed25519PublicKey = "edpk", Secp256k1SecretKey = "spsk", P256SecretKey = "p2sk", BLS12_381SecretKey = "BLsk", ValueHash = "vh", CycleNonce = "nce", ScriptExpr = "expr", InboxHash = "txi", MessageHash = "txm", CommitmentHash = "txc", MessageResultHash = "txmr", MessageResultListHash = "txM", WithdrawListHash = "txw", ScRollupStateHash = "scs1", ScRollupCommitmentHash = "scc1", SmartRollupStateHash = "srs1", SmartRollupCommitmentHash = "src1", Ed25519EncryptedSeed = "edesk", Secp256k1EncryptedSecretKey = "spesk", P256EncryptedSecretKey = "p2esk", BLS12_381EncryptedSecretKey = "BLesk", Secp256k1EncryptedScalar = "seesk", Secp256k1PublicKey = "sppk", P256PublicKey = "p2pk", Secp256k1Scalar = "SSp", Secp256k1Element = "GSp", Ed25519SecretKey = "_edsk", Ed25519Signature = "edsig", Secp256k1Signature = "spsig1", P256Signature = "p2sig", GenericSignature = "sig", ChainID = "Net", SaplingSpendingKey = "sask", EncryptedSaplingSpendingKey = "_sask", SaplingAddress = "zet1", GenericAggregateSignature = "asig", BLS12_381Signature = "BLsig", BLS12_381PublicKey = "BLpk", SlotHeader = "sh" } /** * base58 prefix to bytes mapping */ export declare const prefixV2: { [key in PrefixV2]: Uint8Array; }; /** * base58 prefix to payload length mapping */ export declare const payloadLength: { [key in PrefixV2]: number; };