@fireblocks/ncw-js-infra
Advanced tools
Comparing version 1.0.12 to 1.0.13
594
index.d.ts
@@ -10,11 +10,11 @@ /// <reference types="emscripten" /> | ||
export interface CVec<V> { | ||
size(): number; | ||
size(): number; | ||
push_back(value: V): void; | ||
push_back(value: V): void; | ||
resize(size: number): void; | ||
resize(size: number): void; | ||
get(index: number): V; | ||
get(index: number): V; | ||
set(index: number, value: V): void; | ||
set(index: number, value: V): void; | ||
} | ||
@@ -30,19 +30,20 @@ | ||
export interface Pair<K, V> { | ||
first: K; | ||
second: V; | ||
first: K; | ||
second: V; | ||
} | ||
export interface CMap<K, V> { | ||
size(): number; | ||
size(): number; | ||
set(key: K, value: V): void; | ||
set(key: K, value: V): void; | ||
get(key: K): V | undefined; | ||
get(key: K): V | undefined; | ||
keys(): CVec<K>; | ||
keys(): CVec<K>; | ||
clone(): CMap<K, V>; | ||
clone(): CMap<K, V>; | ||
} | ||
export type MapStringString = CMap<string, string>; | ||
export type MapStringBool = CMap<string, boolean>; | ||
export type MapPlayerCommitments = CMap<PlayerId, Commitment>; | ||
@@ -59,383 +60,412 @@ export type MapPlayerSetupDecomitments = CMap<PlayerId, SetupDecommitment>; | ||
export interface IMetadataToSignInfo { | ||
fillSignatureData: (metadata: string, count: number) => boolean[]; | ||
fillEDDSASignatureData: (metadata: string, count: number) => boolean[]; | ||
fillCMPSignatureData: (metadata: string, count: number) => boolean[]; | ||
fillSignatureData: (metadata: string, count: number) => boolean[]; | ||
fillEDDSASignatureData: (metadata: string, count: number) => boolean[]; | ||
fillCMPSignatureData: (metadata: string, count: number) => boolean[]; | ||
} | ||
export interface GenerateSetupCommitments { | ||
keyId: string; | ||
tenantId: string; | ||
algo: number; | ||
playerIds: CVec<string>; | ||
threshold: number; | ||
ttl: BigInt; | ||
keyId: string; | ||
tenantId: string; | ||
algo: number; | ||
playerIds: CVec<string>; | ||
threshold: number; | ||
ttl: BigInt; | ||
} | ||
export interface Commitment { | ||
salt: string; | ||
commitment: string; | ||
salt: string; | ||
commitment: string; | ||
} | ||
export interface GenerateSetupCommitmentResponse { | ||
keyid: string; | ||
commitment: Commitment; | ||
keyid: string; | ||
commitment: Commitment; | ||
} | ||
export interface CreateCmpSecret { | ||
keyId: string; | ||
large_factors_proofs: CMap<string, CMap<string, string>>; | ||
keyId: string; | ||
large_factors_proofs: CMap<string, CMap<string, string>>; | ||
} | ||
export interface AddDeviceRequest { | ||
tenantId: string; | ||
keyId: string; | ||
algorithm: number; | ||
newKeyId: string; | ||
playersIds: MapStringBool; | ||
t: number; | ||
} | ||
export interface AddDeviceRequestResponse { | ||
encryptedShares: MapStringString; | ||
publicKey: string; | ||
} | ||
export interface CreateCmpSecretResponse { | ||
keyid: string; | ||
public_key: string; | ||
private_share: string; | ||
algorithm: number; | ||
keyid: string; | ||
public_key: string; | ||
private_share: string; | ||
algorithm: number; | ||
} | ||
export interface Decommitment { | ||
R: string; | ||
X: string; | ||
paillier_public_key: string; | ||
ring_pedersen_public_key: string; | ||
seed: string; | ||
R: string; | ||
X: string; | ||
paillier_public_key: string; | ||
ring_pedersen_public_key: string; | ||
seed: string; | ||
} | ||
export interface StoreSetupCommitments { | ||
keyId: string; | ||
commitments: MapPlayerCommitments; | ||
keyId: string; | ||
commitments: MapPlayerCommitments; | ||
} | ||
export interface StoreSetupCommitmentsResponse { | ||
keyid: string; | ||
ack: string; | ||
decommitment: Decommitment; | ||
keyid: string; | ||
ack: string; | ||
decommitment: Decommitment; | ||
} | ||
export interface SetupDecommitment extends Decommitment { | ||
ack: string; | ||
ack: string; | ||
} | ||
export interface SetupProofs { | ||
paillier_blum_zkp: string; | ||
ring_pedersen_param_zkp: string; | ||
schnorr_s: string; | ||
paillier_blum_zkp: string; | ||
ring_pedersen_param_zkp: string; | ||
schnorr_s: string; | ||
} | ||
export interface GenerateSetupProofsResponse { | ||
keyid: string; | ||
proofs: SetupProofs; | ||
keyid: string; | ||
proofs: SetupProofs; | ||
} | ||
export interface GenerateSetupProofs { | ||
keyId: string; | ||
decommitments: MapPlayerSetupDecomitments; | ||
keyId: string; | ||
decommitments: MapPlayerSetupDecomitments; | ||
} | ||
export interface VerifySetupProofs { | ||
keyId: string; | ||
proofs: MapPlayerSetupProofs; | ||
keyId: string; | ||
proofs: MapPlayerSetupProofs; | ||
} | ||
export interface VerifySetupProofsResponse { | ||
keyid: string; | ||
large_factors_proofs: MapStringString; | ||
keyid: string; | ||
large_factors_proofs: MapStringString; | ||
} | ||
export interface SingingBlockData { | ||
data: string; | ||
path: VecString; | ||
data: string; | ||
path: VecString; | ||
} | ||
export interface SigningData { | ||
chaincode: VecUInt32; | ||
blocks: VecSingingBlockData; | ||
chaincode: VecUInt32; | ||
blocks: VecSingingBlockData; | ||
} | ||
export interface StartSigning { | ||
keyId: string; | ||
txid: string; | ||
data: SigningData; | ||
metadata_json: string; | ||
players: VecString; | ||
player_ids: VecString; | ||
keyId: string; | ||
txid: string; | ||
data: SigningData; | ||
metadata_json: string; | ||
players: VecString; | ||
player_ids: VecString; | ||
} | ||
export interface CmpMtaMessage { | ||
message: string; | ||
commitment: string; | ||
proof: string; | ||
message: string; | ||
commitment: string; | ||
proof: string; | ||
} | ||
export interface CmpMtaRequest { | ||
A: string; | ||
B: string; | ||
Z: string; | ||
message: string; | ||
commitment: string; | ||
proofs: MapStringString; | ||
} | ||
export interface StartSigningResponse { | ||
keyid: string; | ||
txid: string; | ||
mta_requests?: Array<{ | ||
A: string; | ||
B: string; | ||
Z: string; | ||
commitment: string; | ||
message: string; | ||
commitment: string; | ||
proofs: MapStringString; | ||
proofs: Record<string, string>; | ||
}>; | ||
} | ||
export interface StartSigningResponse { | ||
keyid: string; | ||
txid: string; | ||
mta_requests?: Array<{ | ||
A: string; | ||
B: string; | ||
Z: string; | ||
commitment: string; | ||
message: string; | ||
proofs: Record<string, string>; | ||
}>; | ||
} | ||
export interface CmpMtaResponse { | ||
k_gamma: MapPlayerCmpMtaMessage; | ||
k_x: MapPlayerCmpMtaMessage; | ||
GAMMA: string; | ||
gamma_proofs: MapStringString; | ||
k_gamma: MapPlayerCmpMtaMessage; | ||
k_x: MapPlayerCmpMtaMessage; | ||
GAMMA: string; | ||
gamma_proofs: MapStringString; | ||
} | ||
export interface CmpMtaDeltas { | ||
delta: string; | ||
DELTA: string; | ||
delta_proof: string; | ||
delta: string; | ||
DELTA: string; | ||
delta_proof: string; | ||
} | ||
export interface CmpMtaResponses { | ||
ack: string; | ||
response: VecCmpMtaResponse; | ||
ack: string; | ||
response: VecCmpMtaResponse; | ||
} | ||
export interface OnCmpMtaMessageResponse { | ||
txid: string; | ||
ack: string; | ||
mta_responses: Array<{ | ||
k_gamma: Record< | ||
string, | ||
{ message: string; commitment: string; proof: string } | ||
>; | ||
k_x: Record<string, { message: string; commitment: string; proof: string }>; | ||
GAMMA: string; | ||
gamma_proofs: Record<string, string>; | ||
}>; | ||
txid: string; | ||
ack: string; | ||
mta_responses: Array<{ | ||
k_gamma: Record< | ||
string, | ||
{ message: string; commitment: string; proof: string } | ||
>; | ||
k_x: Record<string, { message: string; commitment: string; proof: string }>; | ||
GAMMA: string; | ||
gamma_proofs: Record<string, string>; | ||
}>; | ||
} | ||
export interface OnCmpMtaMessageReplyResponse { | ||
txid: string; | ||
deltas: Array<{ | ||
DELTA: string; | ||
delta: string; | ||
delta_proof: string; | ||
}>; | ||
txid: string; | ||
deltas: Array<{ | ||
DELTA: string; | ||
delta: string; | ||
delta_proof: string; | ||
}>; | ||
} | ||
export interface GetSisResponse { | ||
txid: string; | ||
sis: string[]; | ||
txid: string; | ||
sis: string[]; | ||
} | ||
export interface OnGetCmpSignatureResponse { | ||
txId: string; | ||
signatures: Array<{ | ||
signature: string; | ||
signature_object: { | ||
r: string; | ||
s: string; | ||
v: string; | ||
}; | ||
}>; | ||
txId: string; | ||
signatures: Array<{ | ||
signature: string; | ||
signature_object: { | ||
r: string; | ||
s: string; | ||
v: string; | ||
}; | ||
}>; | ||
} | ||
export interface CosignerService { | ||
// Gets pointer of JSCosignerService instance | ||
readonly $$: { readonly ptr: number }; | ||
// Gets pointer of JSCosignerService instance | ||
readonly $$: { readonly ptr: number }; | ||
generateSetupCommitments( | ||
params: GenerateSetupCommitments | ||
): GenerateSetupCommitmentResponse; | ||
generateSetupCommitments( | ||
params: GenerateSetupCommitments | ||
): GenerateSetupCommitmentResponse; | ||
storeSetupCommitments( | ||
params: StoreSetupCommitments | ||
): StoreSetupCommitmentsResponse; | ||
storeSetupCommitments( | ||
params: StoreSetupCommitments | ||
): StoreSetupCommitmentsResponse; | ||
generateSetupProofs(params: GenerateSetupProofs): GenerateSetupProofsResponse; | ||
generateSetupProofs(params: GenerateSetupProofs): GenerateSetupProofsResponse; | ||
verifySetupProofs(params: VerifySetupProofs): VerifySetupProofsResponse; | ||
verifySetupProofs(params: VerifySetupProofs): VerifySetupProofsResponse; | ||
createCmpSecret(params: CreateCmpSecret): CreateCmpSecretResponse; | ||
createCmpSecret(params: CreateCmpSecret): CreateCmpSecretResponse; | ||
generateSignatureCommitment( | ||
keyId: string, | ||
txId: string, | ||
metadataJson: string, | ||
payloads: VecString, | ||
chainCode: string, | ||
paths: Array<number[]>, | ||
players: VecString, | ||
playerIds: VecString, | ||
isCmpOnline: boolean, | ||
isEDDSA: boolean | ||
): StartSigningResponse; | ||
addDeviceRequest(params: AddDeviceRequest): AddDeviceRequestResponse; | ||
onCmpMtaMessage( | ||
txid: string, | ||
playerCmpMtaRequests: MapPlayerCmpMtaRequests | ||
): OnCmpMtaMessageResponse; | ||
generateSignatureCommitment( | ||
keyId: string, | ||
txId: string, | ||
metadataJson: string, | ||
payloads: VecString, | ||
chainCode: string, | ||
paths: Array<number[]>, | ||
players: VecString, | ||
playerIds: VecString, | ||
isCmpOnline: boolean, | ||
isEDDSA: boolean | ||
): StartSigningResponse; | ||
onCmpMtaMessageReply( | ||
txid: string, | ||
playerCmpMtaResponses: MapPlayerCmpMtaResponses | ||
): OnCmpMtaMessageReplyResponse; | ||
onCmpMtaMessage( | ||
txid: string, | ||
playerCmpMtaRequests: MapPlayerCmpMtaRequests | ||
): OnCmpMtaMessageResponse; | ||
getSis( | ||
txid: string, | ||
playerCmpMtaDeltas: MapPlayerCmpMtaDeltas | ||
): GetSisResponse; | ||
onCmpMtaMessageReply( | ||
txid: string, | ||
playerCmpMtaResponses: MapPlayerCmpMtaResponses | ||
): OnCmpMtaMessageReplyResponse; | ||
getCmpSignature( | ||
txid: string, | ||
playerSis: MapPlayerSis | ||
): OnGetCmpSignatureResponse; | ||
getSis( | ||
txid: string, | ||
playerCmpMtaDeltas: MapPlayerCmpMtaDeltas | ||
): GetSisResponse; | ||
/** | ||
* Combine additive secret sharing based (i.e. MPC-CMP) private key shares into a single private key. | ||
* @param algorithm - Algorithm used for key generation and signing | ||
* @param deviceKeyShareData - device key share (as HEX string) | ||
* @param cloudKeyShares - cloud key shares (as HEX string) | ||
* @return - private and public key (both encoded as HEX strings) | ||
*/ | ||
recoverAdditiveMpcKey( | ||
algorithm: number, | ||
deviceKeyShareData: string, | ||
cloudKeyShares: VecString | ||
): { | ||
privateKey: string; | ||
publicKey: string; | ||
}; | ||
getCmpSignature( | ||
txid: string, | ||
playerSis: MapPlayerSis | ||
): OnGetCmpSignatureResponse; | ||
/** | ||
* Serialize the given master private key (for the given algorithm) and chaincode into an extended key. | ||
* @param privateKey | ||
* @param chainCode | ||
* @param algorithm | ||
*/ | ||
encodeExtendedPrivateKey( | ||
privateKey: string, | ||
chainCode: string, | ||
algorithm: number | ||
): string; | ||
/** | ||
* Combine additive secret sharing based (i.e. MPC-CMP) private key shares into a single private key. | ||
* @param algorithm - Algorithm used for key generation and signing | ||
* @param deviceKeyShareData - device key share (as HEX string) | ||
* @param cloudKeyShares - cloud key shares (as HEX string) | ||
* @return - private and public key (both encoded as HEX strings) | ||
*/ | ||
recoverAdditiveMpcKey( | ||
algorithm: number, | ||
deviceKeyShareData: string, | ||
cloudKeyShares: VecString | ||
): { | ||
privateKey: string; | ||
publicKey: string; | ||
}; | ||
/** | ||
* Serialize the given master public key (for the given algorithm) and chaincode into an extended key. | ||
* @param publicKey | ||
* @param chainCode | ||
* @param algorithm | ||
*/ | ||
encodeExtendedPublicKey( | ||
publicKey: string, | ||
chainCode: string, | ||
algorithm: number | ||
): string; | ||
/** | ||
* Serialize the given master private key (for the given algorithm) and chaincode into an extended key. | ||
* @param privateKey | ||
* @param chainCode | ||
* @param algorithm | ||
*/ | ||
encodeExtendedPrivateKey( | ||
privateKey: string, | ||
chainCode: string, | ||
algorithm: number | ||
): string; | ||
/** | ||
* decodes extended private key | ||
* @param extendedPrivateKey | ||
*/ | ||
decodeExtendedPrivateKey(extendedPrivateKey: string): { privateKey: string, chainCode: string, algorithm: number }; | ||
/** | ||
* Serialize the given master public key (for the given algorithm) and chaincode into an extended key. | ||
* @param publicKey | ||
* @param chainCode | ||
* @param algorithm | ||
*/ | ||
encodeExtendedPublicKey( | ||
publicKey: string, | ||
chainCode: string, | ||
algorithm: number | ||
): string; | ||
/** | ||
* generates derived key from given private key | ||
* @param privateKey | ||
* @param chainCode | ||
* @param algorithm | ||
* @param bip44DerivationParams | ||
*/ | ||
deriveAssetKey(privateKey: string, | ||
chainCode: string, | ||
algorithm: number, | ||
bip44DerivationParams: { coinType: number, account: number, change: number, index: number }): string; | ||
/** | ||
* decodes extended private key | ||
* @param extendedPrivateKey | ||
*/ | ||
decodeExtendedPrivateKey(extendedPrivateKey: string): { | ||
privateKey: string; | ||
chainCode: string; | ||
algorithm: number; | ||
}; | ||
/* Releases memory allocated for js cosigner service */ | ||
delete(): void; | ||
/** | ||
* generates derived key from given private key | ||
* @param privateKey | ||
* @param chainCode | ||
* @param algorithm | ||
* @param bip44DerivationParams | ||
*/ | ||
deriveAssetKey( | ||
privateKey: string, | ||
chainCode: string, | ||
algorithm: number, | ||
bip44DerivationParams: { | ||
coinType: number; | ||
account: number; | ||
change: number; | ||
index: number; | ||
} | ||
): string; | ||
isDeleted(): boolean; | ||
/* Releases memory allocated for js cosigner service */ | ||
delete(): void; | ||
isDeleted(): boolean; | ||
} | ||
export interface Module extends EmscriptenModule { | ||
CosignerService: { | ||
new( | ||
tenantId: string, | ||
playerId: BigInt, | ||
do_log_bridge_fn_ptr: number, | ||
rdrand_bytes_fn_ptr: number, | ||
random_fn_fn_ptr: number, | ||
secret_service_store_fn_ptr: number, | ||
secret_service_load_fn_ptr: number, | ||
secret_service_delete_fn_ptr: number, | ||
get_private_key_pem_fn: () => string, | ||
get_public_key_pem_fn: (playerId: string) => string, | ||
metadataToSignInfo: IMetadataToSignInfo | ||
): CosignerService; | ||
}; | ||
CosignerService: { | ||
new ( | ||
tenantId: string, | ||
playerId: BigInt, | ||
do_log_bridge_fn_ptr: number, | ||
rdrand_bytes_fn_ptr: number, | ||
random_fn_fn_ptr: number, | ||
secret_service_store_fn_ptr: number, | ||
secret_service_load_fn_ptr: number, | ||
secret_service_delete_fn_ptr: number, | ||
get_private_key_pem_fn: () => string, | ||
get_public_key_pem_fn: (playerId: string) => string, | ||
metadataToSignInfo: IMetadataToSignInfo | ||
): CosignerService; | ||
}; | ||
// constructs std::vector<std::string> | ||
VecString: { new(): CVec<string> }; | ||
// constructs std::vector<uint32_t> | ||
VecUInt32: { new(): CVec<number> }; | ||
// constructs std::vector<std::vector<uint32_t>> | ||
VectorVectorUInt32: { new(): CVec<CVec<number>> }; | ||
// constructs std::vector<uint64_t> | ||
VecUInt64: { new(): CVec<BigInt> }; | ||
// constructs std::vector<SingingBlockData> | ||
VecSingingBlockData: { new(): VecSingingBlockData }; | ||
// constructs std::vector<CmpMtaRequest> | ||
VecCmpMtaRequest: { new(): VecCmpMtaRequest }; | ||
// constructs std::map<std::string, std::string> | ||
VecCmpMtaResponse: { new(): VecCmpMtaResponse }; | ||
// constructs std::vector<CmpMtaDeltas> | ||
VecCmpMtaDeltas: { new(): VecCmpMtaDeltas }; | ||
// constructs std::map<std::string, std::string> | ||
MapStringString: { new(): MapStringString }; | ||
// constructs std::map<std::string, PlayerCommitments> | ||
MapPlayerCommitments: { new(): MapPlayerCommitments }; | ||
// constructs std::map<std::string, PlayerSetupDecomitments> | ||
MapPlayerSetupDecomitments: { new(): MapPlayerSetupDecomitments }; | ||
// constructs std::map<std::string, PlayerSetupProofs> | ||
MapPlayerSetupProofs: { new(): MapPlayerSetupProofs }; | ||
// constructs std::map<std::string, std::map<std::string, std::string>> | ||
MapLargeFactorsProofs: { new(): MapLargeFactorsProofs }; | ||
// constructs std::map<std::string, std::vector<CmpMtaRequest>> | ||
MapPlayerCmpMtaRequests: { new(): MapPlayerCmpMtaRequests }; | ||
// constructs std::map<std::string, CmpMtaMessage> | ||
MapPlayerCmpMtaMessage: { new(): MapPlayerCmpMtaMessage }; | ||
// constructs std::map<std::string, CmpMtaResponses> | ||
MapPlayerCmpMtaResponses: { new(): MapPlayerCmpMtaResponses }; | ||
// constructs std::map<std::string, std::vector<CmpMtaDeltas>> | ||
MapPlayerCmpMtaDeltas: { new(): MapPlayerCmpMtaDeltas }; | ||
// constructs std::map<std::string, std::vector<std::string>> | ||
MapPlayerSis: { new(): MapPlayerSis }; | ||
// constructs std::vector<std::string> | ||
VecString: { new (): CVec<string> }; | ||
// constructs std::vector<uint32_t> | ||
VecUInt32: { new (): CVec<number> }; | ||
// constructs std::vector<std::vector<uint32_t>> | ||
VectorVectorUInt32: { new (): CVec<CVec<number>> }; | ||
// constructs std::vector<uint64_t> | ||
VecUInt64: { new (): CVec<BigInt> }; | ||
// constructs std::vector<SingingBlockData> | ||
VecSingingBlockData: { new (): VecSingingBlockData }; | ||
// constructs std::vector<CmpMtaRequest> | ||
VecCmpMtaRequest: { new (): VecCmpMtaRequest }; | ||
// constructs std::map<std::string, std::string> | ||
VecCmpMtaResponse: { new (): VecCmpMtaResponse }; | ||
// constructs std::vector<CmpMtaDeltas> | ||
VecCmpMtaDeltas: { new (): VecCmpMtaDeltas }; | ||
// constructs std::map<std::string, std::string> | ||
MapStringString: { new (): MapStringString }; | ||
// constructs std::map<std::string, PlayerCommitments> | ||
MapPlayerCommitments: { new (): MapPlayerCommitments }; | ||
// constructs std::map<std::string, PlayerSetupDecomitments> | ||
MapPlayerSetupDecomitments: { new (): MapPlayerSetupDecomitments }; | ||
// constructs std::map<std::string, PlayerSetupProofs> | ||
MapPlayerSetupProofs: { new (): MapPlayerSetupProofs }; | ||
// constructs std::map<std::string, std::map<std::string, std::string>> | ||
MapLargeFactorsProofs: { new (): MapLargeFactorsProofs }; | ||
// constructs std::map<std::string, std::vector<CmpMtaRequest>> | ||
MapPlayerCmpMtaRequests: { new (): MapPlayerCmpMtaRequests }; | ||
// constructs std::map<std::string, CmpMtaMessage> | ||
MapPlayerCmpMtaMessage: { new (): MapPlayerCmpMtaMessage }; | ||
// constructs std::map<std::string, CmpMtaResponses> | ||
MapPlayerCmpMtaResponses: { new (): MapPlayerCmpMtaResponses }; | ||
// constructs std::map<std::string, std::vector<CmpMtaDeltas>> | ||
MapPlayerCmpMtaDeltas: { new (): MapPlayerCmpMtaDeltas }; | ||
// constructs std::map<std::string, std::vector<std::string>> | ||
MapPlayerSis: { new (): MapPlayerSis }; | ||
MapStringBool: { new (): MapStringBool }; | ||
// constructs std::map<std::string, bool> | ||
// Exported Runtime Methods | ||
addFunction: typeof addFunction; | ||
removeFunction: typeof removeFunction; | ||
UTF8ToString: typeof UTF8ToString; | ||
setValue: typeof setValue; | ||
// Exported Runtime Methods | ||
addFunction: typeof addFunction; | ||
removeFunction: typeof removeFunction; | ||
UTF8ToString: typeof UTF8ToString; | ||
setValue: typeof setValue; | ||
/** | ||
* Returns webassembly exception type and message | ||
* @param ptr - exception pointer | ||
*/ | ||
getExceptionMessage(ptr: number): [ExceptionType, ExceptionMessage]; | ||
/** | ||
* Returns webassembly exception type and message | ||
* @param ptr - exception pointer | ||
*/ | ||
getExceptionMessage(ptr: number): [ExceptionType, ExceptionMessage]; | ||
/** | ||
* Should resolve issue with attribute order for signed JWT payload | ||
* @param json - a payload string that should be fixed | ||
* @returns string - a re stringified json payload | ||
*/ | ||
fixPayload(json: string): string; | ||
/** | ||
* Should resolve issue with attribute order for signed JWT payload | ||
* @param json - a payload string that should be fixed | ||
* @returns string - a re stringified json payload | ||
*/ | ||
fixPayload(json: string): string; | ||
parseJwtPayload(jwtPayload: string): string; | ||
parseJwtPayload(jwtPayload: string): string; | ||
(overrides: Partial<Module>): Promise<Module>; | ||
(overrides: Partial<Module>): Promise<Module>; | ||
} | ||
@@ -442,0 +472,0 @@ |
{ | ||
"name": "@fireblocks/ncw-js-infra", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Fireblocks NCW WebAssembly package", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3722569
1044