UNPKG

@zlattice/lattice-js

Version:

Lattice blockchain TypeScript SDK with dual module support (CJS + ESM)

23 lines 609 B
export declare function bigintToValue(bigint: bigint): string; /** * ASN.1 der 编码,针对 sm2 签名 */ export declare function encodeDer(r: bigint, s: bigint): string; export declare function encodeEnc(x: bigint, y: bigint, hash: string, cipher: string): string; /** * 解析 ASN.1 der,针对 sm2 验签 */ export declare function decodeDer(input: string): { r: bigint; s: bigint; }; /** * 解析 ASN.1 der,针对 sm2 加密 */ export declare function decodeEnc(input: string): { x: bigint; y: bigint; hash: string; cipher: string; }; //# sourceMappingURL=asn1.d.ts.map