View Source API Reference Diode Client v1.2.8
Modules
DiodeClient secure end-to-end encrypted connections between any two machines. Connections are established either through direct peer-to-peer TCP connections or bridged via the Diode network. To learn more about the decentralized Diode network visit https://diode.io/
A listener for incoming connections.
BitMessage implementation used for Diode P2P cold messages.
Block related helper functions
Wrapper for BNS smart contract to register and resolve names.
Moonbeam CallPermit contract https://github.com/moonbeam-foundation/moonbeam/blob/master/precompiles/call-permit/CallPermit.sol
Imported contract to read group memberships. Useful to recursively resolve BNS names to individual devices.
This module is used to create and manage the factory contract. The factory is creating Proxy contracts for deployed implementations. Only the original transaction submitter can upgrade the implementation.
EIP-712 implementation
Meta transaction to submit pre-signed transactions to the blockchain.
Helper module for Saphhire CBOR encoding to enforce canonical order of elements when CBOR encoding maps.
Transport Cipher for Oasis Sapphire
Oasis Sapphire Query Call Signing https://github.com/oasisprotocol/sapphire-contracts/blob/main/contracts/CallPermit.sol
All objects are made of tuples {:type, value1, value2, ..., valueN, signature} The number of values are different but the last signature is a signature is always is the signature of BertExt.encode!([value1, value2, ..., valueN])) Also the signatures public key is always equal to the key
Encoding and Decoding of Recursive Length Prefix (RLP) https://eth.wiki/fundamentals/rlp
DiodeClient.Shell is the interface to the blockchain state. It allows fetching accounts and block header information. Data fetched is by default checked against a merkle proof.
Common functions for the shell implementations.
DiodeClient.Shell is the interface to the blockchain state. It allows fetching accounts and block header information. Data fetched is by default checked against a merkle proof.
DiodeClient.Shell is the interface to the blockchain state. It allows fetching accounts and block header information. Data fetched is by default checked against a merkle proof.
Specialized shell for Oasis Sapphire.
DiodeClient Transport interface for use with Cowboy2 Adapter
and :hackeny
. Potentially more depending on interface compatibility
Representation of an Ethereum Wallet. This struct can hold keys in three levels of completeness
Mix Tasks
BNS CLI