zk-multi-sig 中文文档教程
Mina zkApp:
MultiSig 钱包的 zk-multi-sig 合约。
如何与第三方 zkApps 集成
例如,您可以将授权验证方法集成到需要多重签名钱包管理的 zkOracles 中:
import { MultiSigZkapp } from "zk-multi-sig";
export class MyOracle extends SmartContract {
@method
updateOraclePublicKey(permit: Permit, newPublicKey: PublicKey) {
const multiWallet = new MultiSigZkapp(walletAddress);
multiWallet.approvePermit(permit).assertTrue();
// Other logic
....
}
}
如何构建
npm run build
如何运行测试
npm run test
npm run testw # watch mode
如何运行覆盖
npm run coverage
License
Mina zkApp: zk-multi-sig
contract for MultiSig Wallet.
How to integrate with third-party zkApps
For example, you can integrate authorization verification methods into zkOracles that require multi-signature wallet management:
import { MultiSigZkapp } from "zk-multi-sig";
export class MyOracle extends SmartContract {
@method
updateOraclePublicKey(permit: Permit, newPublicKey: PublicKey) {
const multiWallet = new MultiSigZkapp(walletAddress);
multiWallet.approvePermit(permit).assertTrue();
// Other logic
....
}
}
How to build
npm run build
How to run tests
npm run test
npm run testw # watch mode
How to run coverage
npm run coverage