fixed typo
This commit is contained in:
parent
6378f8a80f
commit
b9cb91c4e1
@ -434,7 +434,7 @@ type Output []SignOperation
|
||||
type SignOperation struct {
|
||||
Operation string `json:"operation"`
|
||||
Arguments struct {
|
||||
HDenumPub SHA512Hash `json:"h_denum_pub"`
|
||||
HDenomPub SHA512Hash `json:"h_denom_pub"`
|
||||
AuditorSig EdDSASignature `json:"auditor_sig"`
|
||||
} `json:"arguments"`
|
||||
}
|
||||
@ -600,7 +600,7 @@ func Sign(input *Input, url string, pk ed25519.PrivateKey) ([]SignOperation, err
|
||||
output[i].Operation = "auditor-sign-denomination-0"
|
||||
|
||||
hash, sig := SignDenom(&denom, sha512.Sum512(append([]byte(url), 0)), &input.Arguments.MasterPublicKey, &pk)
|
||||
output[i].Arguments.HDenumPub = hash
|
||||
output[i].Arguments.HDenomPub = hash
|
||||
output[i].Arguments.AuditorSig = sig
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user