Skip to content

Commit

Permalink
doc address format enforcement requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 committed Dec 1, 2021
1 parent e3b2920 commit 10a9466
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/asset/common.go
Expand Up @@ -97,6 +97,10 @@ type AccountBalancer interface {
AccountBalance(addr string) (uint64, error)
// ValidateSignature checks that the pubkey is correct for the address and
// that the signature shows ownership of the associated private key.
// IMPORTANT: As part of signature validation, the asset backend should
// validate the address against a STRICT standard. Case, prefixes, suffixes,
// etc. must be exactly the same order-to-order, since the address string
// is used as a key for various accounting operations throughout DEX.
ValidateSignature(addr string, pubkey, msg, sig []byte) error
}

Expand Down

0 comments on commit 10a9466

Please sign in to comment.