@runonflux/aa-schnorr-multisig-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Account Abstraction Schnorr Multi Signatures SDK

A typescript library for creating ERC-4337 Account Abstraction which utilizes Schnorr Signatures for multi signatures.

About

Current library provide utilities to sign/send User Operation's with Schnorr Signer. Alchemy Account Kit used to send User Operations. To better understand usage of library go to Examples section.

⚠️ Critical Information

Public Nonces

Never reuse public nonces. Reusing them will cryptographically expose your private keys and lead to a loss of funds. Implement robust nonce management in your application is crucial for security, make sure to delete nonce after usage and never use it again.

Salts

Construction of multisignature address uses salts. Ensure salts are deterministic and consistent to maintain cross-wallet compatibility. Usage of different salts will lead to different multisignature address. Use the following salts that are used by SSP Wallet:

  • accountSalt: aasalt
  • factorySalt: aafactorysalt

📦 Installation

Install via npm:

npm install @runonflux/aa-schnorr-multisig-sdk

Or clone the repository:

git clone https://github.com/RunOnFlux/account-abstraction.git
cd account-abstraction/aa-schnorr-multisig-sdk
npm i

🛠️ Usage

To get started, explore our examples and documentation. Ensure you have a .env file configured with the necessary environment variables as shown in .env.sample.

Examples

🐛 Reporting Issues

Found a bug? Please report it on our issue tracker.

📜 License

This project is licensed under the MIT License.

🌐 Associated Packages

SSP Wallet

SSP Wallet is a multi-signature multi-asset wallet that uses this AA Schnorr Multi-Signature SDK for EVM chains. Check out the SSP Wallet repository for more information and proper usage of the library

Inspiration, Credits & Acknowledgements

Security Audits

The smart contracts and SDK underwent a comprehensive security audit by Halborn finalised in February 2025.

Audit Reports

📄 Smart Contracts Audit

📄 SDK Audit

Findings & Notes

  • Smart Contracts: All findings were in unused code, which has been removed in the main branch. Contracts were redeployed, and the main branch is recommended for production while master branch is an archive where audits were assessed and perfectly safe to continue using. (Fix PR)
  • SDK: All important findigs were addressed in the main branch. Be noted that examples are using hard coded values, furthermore this library requires proper nonce management on the client side, and following a strict error-throwing approach. (Fix PR)

Package Sidebar

Install

npm i @runonflux/aa-schnorr-multisig-sdk

Weekly Downloads

11

Version

1.2.1

License

MIT

Unpacked Size

1.12 MB

Total Files

382

Last publish

Collaborators

  • thetrunk
  • bill2