Crate tap_wasm

Source
Expand description

§TAP WASM Bindings

This crate provides WebAssembly (WASM) bindings for the Transaction Authorization Protocol (TAP) core libraries, including tap-msg and tap-agent. It allows TAP functionality to be used in JavaScript environments such as web browsers and Node.js.

§Features

  • Exposes TAP message creation, parsing, and validation to JavaScript.
  • Provides access to TAP agent functionalities for DIDComm message packing/unpacking.
  • Enables key management and cryptographic operations in a WASM environment.

See the README.md for usage examples.

Structs§

Authorize
Authorization message body (TAIP-4).
Cancel
Cancel message body (TAIP-4).
Message
TAP Message wrapper for DIDComm message
Participant
Participant structure for participants in a transaction.
PaymentRequest
Payment Request message body (TAIP-14).
Reject
Reject message body (TAIP-4).
Revert
Revert message body (TAIP-4).
Settle
Settle message body (TAIP-4).
TapAgent
TAP Agent implementation for WASM bindings
TapNode
Represents a node on the TAP network
Transfer
Transfer message body (TAIP-3).

Enums§

MessageType
The type of TAP Messages following the TAP specification

Functions§

create_did_key
Creates a new DID key pair
generate_uuid_v4
Creates a new UUID using the wasm-bindgen compatible uuid crate
init_tap_wasm
Initialize the WASM module (doesn’t use wasm_bindgen start anymore to avoid conflicts)