Skip to content

Commit

Permalink
go generate
Browse files Browse the repository at this point in the history
  • Loading branch information
bunfield committed May 31, 2024
1 parent 02d98e8 commit 997f6a8
Show file tree
Hide file tree
Showing 3 changed files with 360 additions and 360 deletions.
14 changes: 7 additions & 7 deletions protocol/enums_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ const SignatureTypeAuthority SignatureType = 13
// SignatureTypeRsaSha256 represents an RSA signature of SHA256 hashed data.
const SignatureTypeRsaSha256 SignatureType = 14

// SignatureTypeEcdsaSha256 represents a signature from a PKI certificate of SHA256 hashed data.
const SignatureTypeEcdsaSha256 SignatureType = 15
// SignatureTypePkiSha256 represents a signature from a PKI certificate of SHA256 hashed data.
const SignatureTypePkiSha256 SignatureType = 15

// TransactionMaxUser is the highest number reserved for user transactions.
const TransactionMaxUser TransactionMax = 48
Expand Down Expand Up @@ -1160,7 +1160,7 @@ func (v SignatureType) GetEnumValue() uint64 { return uint64(v) }
func (v *SignatureType) SetEnumValue(id uint64) bool {
u := SignatureType(id)
switch u {
case SignatureTypeUnknown, SignatureTypeLegacyED25519, SignatureTypeED25519, SignatureTypeRCD1, SignatureTypeReceipt, SignatureTypePartition, SignatureTypeSet, SignatureTypeRemote, SignatureTypeBTC, SignatureTypeBTCLegacy, SignatureTypeETH, SignatureTypeDelegated, SignatureTypeInternal, SignatureTypeAuthority, SignatureTypeRsaSha256, SignatureTypeEcdsaSha256:
case SignatureTypeUnknown, SignatureTypeLegacyED25519, SignatureTypeED25519, SignatureTypeRCD1, SignatureTypeReceipt, SignatureTypePartition, SignatureTypeSet, SignatureTypeRemote, SignatureTypeBTC, SignatureTypeBTCLegacy, SignatureTypeETH, SignatureTypeDelegated, SignatureTypeInternal, SignatureTypeAuthority, SignatureTypeRsaSha256, SignatureTypePkiSha256:
*v = u
return true
}
Expand Down Expand Up @@ -1200,8 +1200,8 @@ func (v SignatureType) String() string {
return "authority"
case SignatureTypeRsaSha256:
return "rsaSha256"
case SignatureTypeEcdsaSha256:
return "PkiSha256"
case SignatureTypePkiSha256:
return "pkiSha256"
}
return fmt.Sprintf("SignatureType:%d", v)
}
Expand Down Expand Up @@ -1241,8 +1241,8 @@ func SignatureTypeByName(name string) (SignatureType, bool) {
return SignatureTypeAuthority, true
case "rsasha256":
return SignatureTypeRsaSha256, true
case "PkiSha256":
return SignatureTypeEcdsaSha256, true
case "pkisha256":
return SignatureTypePkiSha256, true
}
return 0, false
}
Expand Down
Loading

0 comments on commit 997f6a8

Please sign in to comment.