Hubert - Distributed infrastructure for secure multiparty transactions.
This library provides distributed key-value storage using ARID-based addressing with multiple storage backends for FROST threshold signature protocols.
Port of lib.rs from hubert-rust.
import { KvStore, deriveIpfsKeyName } from "@bcts/hubert";import { ARID } from "@bcts/components";import { Envelope } from "@bcts/envelope";// Create an ARIDconst arid = ARID.new();// Create an envelopeconst envelope = Envelope.new("Hello, Hubert!");// Use any KvStore implementation to store/retrieveasync function example(store: KvStore) { await store.put(arid, envelope); const result = await store.get(arid);} Copy
import { KvStore, deriveIpfsKeyName } from "@bcts/hubert";import { ARID } from "@bcts/components";import { Envelope } from "@bcts/envelope";// Create an ARIDconst arid = ARID.new();// Create an envelopeconst envelope = Envelope.new("Hello, Hubert!");// Use any KvStore implementation to store/retrieveasync function example(store: KvStore) { await store.put(arid, envelope); const result = await store.get(arid);}
Hubert - Distributed infrastructure for secure multiparty transactions.
This library provides distributed key-value storage using ARID-based addressing with multiple storage backends for FROST threshold signature protocols.
Port of lib.rs from hubert-rust.
Example: Basic Usage