warp-signature
v1.0.5
Published
Warp Signature is a tool to be used in [Warp](https://github.com/warp-contracts/warp) contracts. It allows to sign transactions using non-Arweave wallet. Currently, it is possible to connect to EVM wallet using Metamask plugin in browser environment.
Downloads
36
Readme
Warp Signature
Warp Signature is a tool to be used in Warp contracts. It allows to sign transactions using non-Arweave wallet. Currently, it is possible to connect to EVM wallet using Metamask plugin in browser environment.
Signing transactions
await this.contract.connect({ signer: evmSignature, signatureType: 'ethereum' }).writeInteraction({
function: 'function'
});
Signature verification
In order to verify signatures for the given contract, one needs to use EvmSignatureVerificationPlugin
while initializing Warp. Plugin will be then fired up when reading contract state and all interactions' signatures will be then verified. If incorrect signature will be detected, contract state will be evaluated without it.
const warp = await WarpFactory.forMainnet().use(new EvmSignatureVerificationPlugin());
Future plans
- Expand to NodeJs environment.
- Usage of other wallets (e.g. Solana) and plugins.
- Add option to deploy contracts using Warp Signature.