MCPcopy Create free account
hub / github.com/ccxt/ccxt / hash_message

Method hash_message

python/ccxt/hyperliquid.py:1541–1542  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

1539 return self.decimal_to_precision(result, ROUND, subtractedValue, DECIMAL_PLACES, self.paddingMode)
1540
1541 def hash_message(self, message):
1542 return '0x' + self.hash(message, 'keccak', 'hex')
1543
1544 def sign_hash(self, hash, privateKey):
1545 signature = self.ecdsa(hash[-64:], privateKey[-64:], 'secp256k1', None)

Callers 1

sign_messageMethod · 0.95

Calls 1

hashMethod · 0.45

Tested by

no test coverage detected