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
{{ message }}
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.
So in order to get a SET, we need the set ASN1 tag on the struct field. But we must also indicate what Go types are possible for the Fulfillment interface.
However, with the following code, asn1 tries to match the CHOICE type (some struct that implements the Fulfillment interface) against the SubFulfillments field, which of course does not match the []Fulfillment type.
Thus, asn1 should recognize that when a choice it put on a SET or a SEQUENCE, it should match the elements inside the set or the sequence instead of that field itself.
The specific error you get is
invalid Go type '[]cryptoconditions.Fulfillment' for choice 'fulfillment'
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Consider this spec:
So in order to get a SET, we need the
set
ASN1 tag on the struct field. But we must also indicate what Go types are possible for theFulfillment
interface.However, with the following code, asn1 tries to match the CHOICE type (some struct that implements the
Fulfillment
interface) against theSubFulfillments
field, which of course does not match the[]Fulfillment
type.Thus, asn1 should recognize that when a choice it put on a SET or a SEQUENCE, it should match the elements inside the set or the sequence instead of that field itself.
The specific error you get is
The text was updated successfully, but these errors were encountered: