input-output-hk / testnet-stake-pool-registry-validator

Testnet stake pool registry validator.
Apache License 2.0
3 stars 0 forks source link

pledge_address not prepended with ed25519 #1

Closed mmahut closed 4 years ago

mmahut commented 5 years ago

According to https://github.com/input-output-hk/testnet-stake-pool-registry/blob/master/README.org#submission-well-formedness-rules 6. ii. the “pledge_address” must be prepended with the ed25519, but the validator does not honor it.

[nix-shell:~/prep]# registry prepare-submission --ticker NUTS --pool-web https://stakenuts.com/ --public-key-file ./stake_key.pub --pledge-address ed25519_ca1q5c0l4ynnmvt66p8knxd787s39dn4mlv383jn3u6lzsag7fuy25w5jm6695
option --pledge-address: Pledge address decoding error for 'ed25519_ca1q5c0l4ynnmvt66p8knxd787s39dn4mlv383jn3u6lzsag7fuy25w5jm6695':
StringToDecodeContainsInvalidChars []

Usage: registry prepare-submission --ticker TICKER --pool-web URI
                                   --pledge-address PLEDGE-ADDRESS
                                   --public-key-file PUBLICKEY-FILE
  Make a stake pool registry entry submission.

[nix-shell:~/prep]# registry prepare-submission --ticker NUTS --pool-web https://stakenuts.com/ --public-key-file ./stake_key.pub --pledge-address ca1q5c0l4ynnmvt66p8knxd787s39dn4mlv383jn3u6lzsag7fuy25w5jm6695
Writing submission to pk1xrlafyu7mz7ksfa5en03l5yftvawlmyfuv5u0xhc5828j0pz4r4q902mut.json
You'll need to provide a signature in pk1xrlafyu7mz7ksfa5en03l5yftvawlmyfuv5u0xhc5828j0pz4r4q902mut.sig

[nix-shell:~/prep]# cat pk1xrlafyu7mz7ksfa5en03l5yftvawlmyfuv5u0xhc5828j0pz4r4q902mut.json 
{
    "homepage": "https://stakenuts.com/",
    "ticker": "NUTS",
    "id": "ed25519_pk1xrlafyu7mz7ksfa5en03l5yftvawlmyfuv5u0xhc5828j0pz4r4q902mut",
    "pledge_address": "ca1q5c0l4ynnmvt66p8knxd787s39dn4mlv383jn3u6lzsag7fuy25w5jm6695"
}
[nix-shell:~/prep]# 
deepfire commented 4 years ago

The schema has changed, and the README will be updated soon.

cc @KtorZ