Sha256: 4847682a3ce11303d7f9be7c4040e77e4e48ffc7fad91f9c75518c1abe5fa643
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
/** * @module index */ import { TSeed } from '@waves/ts-lib-crypto'; import { TPrivateKey } from '../types'; import { DataTransactionEntry } from '@waves/ts-types'; import { DataTransactionDeleteRequest } from '@waves/ts-types/src/parts'; export interface ICustomDataV1 { version: 1; /** * base64 encoded UInt8Array */ binary: string; publicKey?: string; } export interface ICustomDataV2 { version: 2; data: Exclude<DataTransactionEntry, DataTransactionDeleteRequest>[]; publicKey?: string; } export declare type TCustomData = ICustomDataV1 | ICustomDataV2; export declare type TSignedData = TCustomData & { /** * base58 public key */ publicKey: string | undefined; /** * base58 encoded blake2b(serialized data) */ hash: string; /** * base58 encoded signature */ signature: string | undefined; }; /** * Signs [[TCustomData]] */ export declare function customData(cData: TCustomData, seed?: TSeed | TPrivateKey): TSignedData; export declare function serializeCustomData(d: TCustomData): Uint8Array;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
waves_lib-0.1.0 | js/node_modules/@waves/waves-transactions/dist/requests/custom-data.d.ts |