Hubert - Distributed Infrastructure for Secure Multiparty Transactions - v1.0.0-alpha.20
    Preparing search index...

    Module @bcts/hubert

    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 ARID
    const arid = ARID.new();

    // Create an envelope
    const envelope = Envelope.new("Hello, Hubert!");

    // Use any KvStore implementation to store/retrieve
    async function example(store: KvStore) {
    await store.put(arid, envelope);
    const result = await store.get(arid);
    }

    Classes - IPFS Backend

    IpfsKv

    Classes - Hybrid Backend

    HybridKv

    Classes - Server Backend

    ServerKvClient
    MemoryKv
    SqliteKv

    Classes - Errors

    HubertError
    AlreadyExistsError
    NotFoundError
    InvalidAridError
    IoError

    Classes - Hybrid

    HybridError
    ContentNotFoundError
    NotReferenceEnvelopeError
    InvalidReferenceAridError
    NoIdAssertionError

    Classes - IPFS

    IpfsError
    EnvelopeTooLargeError
    IpfsDaemonError
    IpfsTimeoutError
    UnexpectedIpnsPathFormatError

    Classes - Mainline

    MainlineError
    ValueTooLargeError
    DhtError
    PutQueryError
    DecodeIdError
    PutMutableError
    MainlineIoError

    Classes - Mainline Backend

    MainlineDhtKv

    Classes - Server

    Server

    Classes - Server Errors

    ServerError
    ServerGeneralError
    ServerNetworkError
    ServerParseError
    SqliteError

    Interfaces - KvStore Interface

    KvStore

    Interfaces - Server

    ServerConfig

    Type Aliases - Server Backend

    ServerKv

    Variables

    defaultServerConfig

    Functions - ARID Derivation

    deriveKey
    deriveIpfsKeyName
    deriveMainlineKey
    obfuscateWithArid

    Functions - Server Backend

    createMemoryKv
    createSqliteKv

    Functions - Logging

    timestamp
    verbosePrintln
    verbosePrintDot
    verboseNewline

    Functions - Hybrid

    createReferenceEnvelope
    isReferenceEnvelope
    extractReferenceArid

    Functions - IPFS

    addBytes
    catBytes
    pinCid