UNPKG

@okxweb3/coin-stellar

Version:

@ok/coin-stellar is a Stellar SDK for building Web3 wallets and applications. It supports Stellar and PI blockchains, enabling private key management, address generation, transaction signing, trustline creation, and asset transfers

25 lines (24 loc) 1.29 kB
export function decodeCheck(versionByteName: any, encoded: any): Buffer; export function encodeCheck(versionByteName: any, data: any): any; export class StrKey { static encodeEd25519PublicKey(data: Buffer): string; static decodeEd25519PublicKey(data: string): Buffer; static isValidEd25519PublicKey(publicKey: string): boolean; static encodeEd25519SecretSeed(data: Buffer): string; static decodeEd25519SecretSeed(address: string): Buffer; static isValidEd25519SecretSeed(seed: string): boolean; static encodeMed25519PublicKey(data: Buffer): string; static decodeMed25519PublicKey(address: string): Buffer; static isValidMed25519PublicKey(publicKey: string): boolean; static encodePreAuthTx(data: Buffer): string; static decodePreAuthTx(address: string): Buffer; static encodeSha256Hash(data: Buffer): string; static decodeSha256Hash(address: string): Buffer; static encodeSignedPayload(data: Buffer): string; static decodeSignedPayload(address: string): Buffer; static isValidSignedPayload(address: string): boolean; static encodeContract(data: Buffer): string; static decodeContract(address: string): Buffer; static isValidContract(address: string): boolean; static getVersionByteForPrefix(address: any): any; }