MCPcopy Create free account
hub / github.com/QuipNetwork/cpp-sdk / sign

Method sign

src/cli.cpp:164–169  ·  view source on GitHub ↗

Sign a message using a recovered keypair

Source from the content-addressed store, hash-verified

162
163 // Sign a message using a recovered keypair
164 Signature sign(const std::array<uint8_t, 32> &message,
165 const std::vector<std::array<uint8_t, 32>> &private_key,
166 const std::array<uint8_t, 32> &publicSeed) {
167 // Sign the message with the provided private key and public seed
168 return wots_.sign(private_key, publicSeed, message);
169 }
170
171private:
172 std::array<uint8_t, 32> quantum_secret_;

Callers 4

handleTransferMethod · 0.80
handleExecuteMethod · 0.80
handleChangePqOwnerMethod · 0.80
handleSignMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected