quadb-sdk
v1.0.0
Published
ipns multisig sdk
Maintainers
Readme
QuadB SDK
A TypeScript SDK for IPNS multisig functionality.
Installation
npm install quadb-sdkUsage
The SDK requires a signer that implements the Signer interface. Here's a basic example:
import { QuadBSDK } from "quadb-sdk";
// Create a signer that implements the Signer interface
const signer = {
signMessage: async (message: string) => {
// Implement your signing logic here
return `signed_${message}`;
},
getAddress: async () => {
// Implement your address retrieval logic here
return "0x123";
},
};
// Initialize the SDK
const sdk = new QuadBSDK({ signer });
// Use the SDK
const address = await sdk.getAddress();
const signedMessage = await sdk.signMessage("Hello, World!");Features
- TypeScript support
- CommonJS and ES Modules support
- Signer-agnostic design
- Comprehensive type definitions
Documentation
For detailed documentation, please visit our TypeDoc documentation.
License
MIT
