keripy icon indicating copy to clipboard operation
keripy copied to clipboard

KLI sign and verify with multi-sig

Open psteniusubi opened this issue 2 years ago • 0 comments

Steps to reproduce

  1. Reset
  2. Setup with multisig.sh
  3. Use kli sign to create signature as multi-sig group
  4. Use kli verify to verify signature

Reset and setup

$ rm -rf ~/.keri
$ kli witness demo &
$ ./scripts/demo/basic/multisig.sh

Create signature as multi-sig group

$ kli sign --name multisig1 --alias multisig --text "hello"
1. ABAMVo5-WHNlIhx6QEhVEljXGqZrLCJ2g9eXH-jVmy6w9aRde6HfPrIRHBiyFlIIdDIZwjFOMZQhzWfWfOQJCPAN

Verify signature

kli verify --name multisig1 --alias multisig1 --prefix EC61gZ9lCKmHAS7U5ehUfEbGId5rcY0D7MirFZHDQcE2 --text "hello" --signature "ABAMVo5-WHNlIhx6QEhVEljXGqZrLCJ2g9eXH-jVmy6w9aRde6HfPrIRHBiyFlIIdDIZwjFOMZQhzWfWfOQJCPAN"
Signature 2 is valid.

I would have expected something like this to happen

  • kli sign should report that more signers need to participate
  • kli verify should fail if signature does not have enough signers

psteniusubi avatar Sep 23 '22 13:09 psteniusubi