verkle-cryptography-wasm
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -1,3 +0,2 @@ | ||
export declare const loadVerkleCrypto: () => Promise<VerkleCrypto>; | ||
export interface VerkleCrypto { | ||
export declare const loadVerkleCrypto: () => Promise<{ | ||
getTreeKey: (address: Uint8Array, treeIndex: Uint8Array, subIndex: number) => Uint8Array; | ||
@@ -10,5 +9,5 @@ getTreeKeyHash: (address: Uint8Array, treeIndexLE: Uint8Array) => Uint8Array; | ||
serializeCommitment: (commitment: Uint8Array) => Uint8Array; | ||
} | ||
}>; | ||
export type Scalar = Uint8Array; | ||
export type Commitment = Uint8Array; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,3 +0,2 @@ | ||
export declare const loadVerkleCrypto: () => Promise<VerkleCrypto>; | ||
export interface VerkleCrypto { | ||
export declare const loadVerkleCrypto: () => Promise<{ | ||
getTreeKey: (address: Uint8Array, treeIndex: Uint8Array, subIndex: number) => Uint8Array; | ||
@@ -10,5 +9,5 @@ getTreeKeyHash: (address: Uint8Array, treeIndexLE: Uint8Array) => Uint8Array; | ||
serializeCommitment: (commitment: Uint8Array) => Uint8Array; | ||
} | ||
}>; | ||
export type Scalar = Uint8Array; | ||
export type Commitment = Uint8Array; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "verkle-cryptography-wasm", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Verkle Trie Crytography WASM/TypeScript Bindings", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -11,3 +11,3 @@ import { | ||
export const loadVerkleCrypto = async (): Promise<VerkleCrypto> => { | ||
export const loadVerkleCrypto = async () => { | ||
await initVerkleWasm() | ||
@@ -49,17 +49,2 @@ | ||
export interface VerkleCrypto { | ||
getTreeKey: (address: Uint8Array, treeIndex: Uint8Array, subIndex: number) => Uint8Array | ||
getTreeKeyHash: (address: Uint8Array, treeIndexLE: Uint8Array) => Uint8Array | ||
updateCommitment: ( | ||
commitment: Uint8Array, | ||
commitmentIndex: number, | ||
oldScalarValue: Uint8Array, | ||
newScalarValue: Uint8Array | ||
) => Commitment | ||
zeroCommitment: Uint8Array | ||
verifyExecutionWitnessPreState: (prestateRoot: string, execution_witness_json: string) => boolean | ||
hashCommitment: (commitment: Uint8Array) => Uint8Array | ||
serializeCommitment: (commitment: Uint8Array) => Uint8Array | ||
} | ||
// This is a 32 byte serialized field element | ||
@@ -66,0 +51,0 @@ export type Scalar = Uint8Array |
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
Sorry, the diff of this file is not supported yet
1674926
2301