You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the crypto.PublicKey is defined as any, although I don't know why it compiles.
But the type checking does throw an exception
// VerificationKey represents a public or secret key for verifying a token's signature.typeVerificationKeyinterface {
crypto.PublicKey| []uint8
}
// VerificationKeySet is a set of public or secret keys. It is used by the parser to verify a token.typeVerificationKeySetstruct {
Keys []VerificationKey
}
However, since any exists, this doesn't seem to make any sense.
Finally, I changed it to this.
// VerificationKey represents a public or secret key for verifying a token's signature.typeVerificationKey=any// VerificationKeySet is a set of public or secret keys. It is used by the parser to verify a token.typeVerificationKeySetstruct {
Keys []VerificationKey
}