Skip to content

Commit ee0c7b8

Browse files
authored
Remove verkleCrypto interface (#55)
* Remove verkleCrypto interface * update changelog/version * update version number
1 parent 69dab13 commit ee0c7b8

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
(modification: no type change headlines) and this project adheres to
66
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## 0.4.5 - 2024-06-21
9+
10+
- Remove duplicative `VerkleCrypto` typescript interface as unnecessary. [#55](https://github.com/ethereumjs/verkle-cryptography-wasm/pull/55)
11+
812
## 0.4.4 - 2024-06-11
913

1014
- Add `serializeCommitment` to to the public API, PR [#53](https://github.com/ethereumjs/verkle-cryptography-wasm/pull/53)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "verkle-cryptography-wasm",
3-
"version": "0.4.4",
3+
"version": "0.4.5",
44
"description": "Verkle Trie Crytography WASM/TypeScript Bindings",
55
"keywords": [
66
"ethereum",

src.ts/index.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from './verkleFFIBindings/index.js'
99
import { Context as VerkleFFI } from './wasm/rust_verkle_wasm.js'
1010

11-
export const loadVerkleCrypto = async (): Promise<VerkleCrypto> => {
11+
export const loadVerkleCrypto = async () => {
1212
await initVerkleWasm()
1313

1414
const verkleFFI = new VerkleFFI()
@@ -45,21 +45,6 @@ export const loadVerkleCrypto = async (): Promise<VerkleCrypto> => {
4545
}
4646
}
4747

48-
export interface VerkleCrypto {
49-
getTreeKey: (address: Uint8Array, treeIndex: Uint8Array, subIndex: number) => Uint8Array
50-
getTreeKeyHash: (address: Uint8Array, treeIndexLE: Uint8Array) => Uint8Array
51-
updateCommitment: (
52-
commitment: Uint8Array,
53-
commitmentIndex: number,
54-
oldScalarValue: Uint8Array,
55-
newScalarValue: Uint8Array
56-
) => Commitment
57-
zeroCommitment: Uint8Array
58-
verifyExecutionWitnessPreState: (prestateRoot: string, execution_witness_json: string) => boolean
59-
hashCommitment: (commitment: Uint8Array) => Uint8Array
60-
serializeCommitment: (commitment: Uint8Array) => Uint8Array
61-
}
62-
6348
// This is a 32 byte serialized field element
6449
export type Scalar = Uint8Array
6550

0 commit comments

Comments
 (0)