This package is a simple WASM module used for deriving addresses from Aleo signatures.
npm install aleo-address-derivation
const { initializeWasm, getAddressFromSignature } = require('aleo-address-derivation');
async function deriveAddress() {
await initializeWasm();
const signature = 'your_aleo_signature_here';
try {
const address = getAddressFromSignature(signature);
console.log('Derived address:', address);
} catch (error) {
console.error('Error:', error.message);
}
}
deriveAddress();
Initializes the WASM module. This function must be called before using other functions.
Derives an address from the given Aleo signature.
signature
: Aleo signature (string)- Returns: Derived Aleo address (string)
- Node.js (v14 or higher)
- Rust
- wasm-pack
-
Clone the repository:
git clone https://github.com/hoodrunio/aleo-address-derivation.git cd aleo-address-derivation
-
Install dependencies:
npm install
-
Build the project:
npm run build
node test.js
MIT
We welcome contributions! Please open an issue before submitting a pull request.