all repos — honk @ a224c0e6bacb0c86dab4b6fafa745da7a68dffa0

my fork of honk

try to support implemenations that put the key object in a seperate place
Ted Unangst tedu@tedunangst.com
Wed, 17 Jul 2019 16:33:38 -0400
commit

a224c0e6bacb0c86dab4b6fafa745da7a68dffa0

parent

d672617a17bcd786712d26a3e8fe16aac832b02a

1 files changed, 6 insertions(+), 3 deletions(-)

jump to
M fun.gofun.go

@@ -457,13 +457,16 @@ if err != nil {

log.Printf("error getting %s pubkey: %s", keyname, err) return } - var ok bool - data, ok = j.FindString([]string{"publicKey", "publicKeyPem"}) + keyobj, ok := j.GetMap("publicKey") + if ok { + j = keyobj + } + data, ok = j.GetString("publicKeyPem") if !ok { log.Printf("error finding %s pubkey", keyname) return } - _, ok = j.FindString([]string{"publicKey", "owner"}) + _, ok = j.GetString("owner") if !ok { log.Printf("error finding %s pubkey owner", keyname) return