Multichain authentication
Enhanced functionality and blockchain support with molecule.sh
molecule.sh not only serves as the global library for MEM functions, offering access to pre-defined plugins and reusable code, but it also provides support for 14 networks. This allows your functions to seamlessly authenticate with various network standards.
For example, you can code a MEM function that is compatible with MetaMask wallet for caller validation (using msg.sender
in this case).
Supported Networks
Network | elliptic curve / crypto-algo |
---|---|
EVM |
|
Dfinity |
|
Arweave |
|
Solana |
|
Zilliqa |
|
Tron |
|
Stacks (STX) |
|
Substrate |
|
TON |
|
Massa |
|
Tezos (tz1 address) |
|
Aptos |
|
Nostr |
|
Fuels |
|
Example: EVM-based Caller Authentication with signer
atom of evm
molecule
signer
atom of evm
moleculeThe following example demonstrates a MEM function implementation that utilizes EVM for caller authentication (action.caller
or similar to msg.sender
). This authentication mechanism is provided by the signer
atom of the evm
molecule. This approach ensures secure and reliable validation of the function's caller.
MEM function source code
MEM function initial state
Last updated