Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
add CommitToPoly
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Oct 15, 2023
1 parent 245bda9 commit 01fb9b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions verkle_trie_js/src/banderwagon_bindings/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import {
ElementWrapper,
element_add,
element_sub,
commit_scalar_values,
} from "@kevaundray/rust_verkle_wasm";
import { ScalarField } from "../ecc_bindings";

export class Element {
inner!: ElementWrapper;
Expand Down Expand Up @@ -32,3 +34,7 @@ export class Element {
return Element.fromElementWrapper(inner);
}
}

export function CommitToPoly(values: ScalarField[]): Element {
throw new Error("Not implemented");
}
1 change: 1 addition & 0 deletions verkle_trie_js/src/banderwagon_bindings/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { Element } from "./element";
export { CommitToPoly } from "./element";
6 changes: 3 additions & 3 deletions verkle_trie_js/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Export ScalarField
export * from "./ecc_bindings/index";
export { ScalarField as Fr } from "./ecc_bindings/index";

// Export a Banderwagon group element
export * from "./banderwagon_bindings/index";
// Export a Banderwagon group element and the commit to polynomial method
export { Element as Point, CommitToPoly } from "./banderwagon_bindings/index";

0 comments on commit 01fb9b4

Please sign in to comment.