@totemsdk/proofgraph 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "proofgraph-wasm",
3
+ "collaborators": [
4
+ "Totem SDK Contributors"
5
+ ],
6
+ "description": "Local deterministic proof relationship graph — content-addressed DAG, node/edge ID computation, graph ID hashing, import/export validation (Rust/WASM)",
7
+ "version": "0.1.0",
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/totem-sdk/totem-sdk"
12
+ },
13
+ "files": [
14
+ "proofgraph_wasm_bg.wasm",
15
+ "proofgraph_wasm.js",
16
+ "proofgraph_wasm.d.ts"
17
+ ],
18
+ "main": "proofgraph_wasm.js",
19
+ "homepage": "https://totem.ing",
20
+ "types": "proofgraph_wasm.d.ts"
21
+ }
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ export function add_edge_wasm(graph_js: any, edge_js: any): any;
5
+
6
+ export function add_node_wasm(graph_js: any, node_type: string, ref_id: string, data_js: any | null | undefined, created_at: bigint): any;
7
+
8
+ export function canonical_json_wasm(value_js: any): string;
9
+
10
+ export function compute_edge_id_wasm(edge_type: string, from: string, to: string, proof_id?: string | null, data_js?: any | null): string;
11
+
12
+ export function compute_node_id_wasm(node_type: string, ref_id: string): string;
13
+
14
+ export function compute_proof_graph_id_wasm(nodes_js: any, edges_js: any): string;
15
+
16
+ export function create_proof_graph_wasm(metadata_js: any | null | undefined, created_at: bigint): any;
17
+
18
+ export function find_node_wasm(graph_js: any, id: string): any;
19
+
20
+ export function find_proofs_by_subject_wasm(graph_js: any, subject_id: string): any;
21
+
22
+ export function get_edges_from_wasm(graph_js: any, node_id: string): any;
23
+
24
+ export function init(): void;
25
+
26
+ export function reachable_from_wasm(graph_js: any, start_ref_id: string): any;
27
+
28
+ export function resolve_current_proof_set_wasm(graph_js: any): any;
29
+
30
+ export function to_hex_wasm(bytes: Uint8Array): string;