PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-ada/dist/src/lib/messages/cip8
Просмотр файла: utils.d.ts
import { Buffer } from 'buffer';
import * as CSL from '@emurgo/cardano-serialization-lib-nodejs';
export declare function bytesToHex(bytes: Uint8Array | Buffer): string;
export interface CSLSigStructureOutput {
sigStructureCborBytes: Uint8Array;
protectedHeaderCborBytes: Uint8Array;
payloadBytes: Buffer;
}
export interface CSLCoseObjectsOutput {
manualCoseSign1Hex: string;
manualCoseKeyHex: string;
}
/**
* Creates the CSL signature structure for off-chain message signing.
*
* @param addressCborBytes - The CBOR bytes of the CSL address.
* @param message - The message to be signed.
* @returns An object containing the signature structure CBOR bytes, protected header CBOR bytes, and payload bytes.
*/
export declare function createCSLSigStructure(addressCborBytes: Uint8Array, message: string): CSLSigStructureOutput;
export declare function constructCSLCoseObjects(protectedHeaderCborBytes: Uint8Array, payloadBytes: Buffer, cslSignatureBytes: Uint8Array, paymentPubKey: CSL.PublicKey): CSLCoseObjectsOutput;
export declare function coseObjectsOutputToBuffer(output: CSLCoseObjectsOutput): Buffer;
export declare function bufferToCoseObjectsOutput(buffer: Buffer): Promise<CSLCoseObjectsOutput>;
//# sourceMappingURL=utils.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!