Table of Contents
Module spoon_ai.neofs.utils
SignatureError Objects​
class SignatureError(Exception)
Raised when signature payload construction fails.
sign_bearer_token​
def sign_bearer_token(bearer_token: str,
private_key_wif: str,
*,
wallet_connect: bool = True) -> tuple[str, str]
Returns (signature_hex, compressed_pubkey_hex)
- wallet_connect=True: msg = WC format (with prefix/len/salt/postfix), hash=SHA-256 X-Bearer-Signature = <DER signature hex> + <16B salt hex> X-Bearer-Signature-Key = <compressed public key hex> URL needs to append ?walletConnect=true