File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,11 @@ func (ls MockLedgerState) StakeRegistration(
5151) ([]common.StakeRegistrationCertificate , error ) {
5252 ret := []common.StakeRegistrationCertificate {}
5353 for _ , cert := range ls .MockStakeRegistration {
54- if string (cert .StakeRegistration .Credential ) == string (stakingKey ) {
54+ if string (
55+ common .Blake2b224 (cert .StakeRegistration .Credential ).Bytes (),
56+ ) == string (
57+ stakingKey ,
58+ ) {
5559 ret = append (ret , cert )
5660 }
5761 }
Original file line number Diff line number Diff line change @@ -27,11 +27,13 @@ const (
2727 CredentialTypeScriptHash = 1
2828)
2929
30+ type CredentialHash Blake2b224
31+
3032type Credential struct {
3133 cbor.StructAsArray
3234 cbor.DecodeStoreCbor
3335 CredType uint
34- Credential [] byte
36+ Credential CredentialHash
3537}
3638
3739func (c * Credential ) UnmarshalCBOR (data []byte ) error {
You can’t perform that action at this time.
0 commit comments