|
iota.lib.cpp
IOTA C++ Library
|
Functions | |
| std::vector< uint8_t > | key (const std::vector< uint8_t > &seedBytes, uint32_t index, uint32_t security) |
| std::vector< uint8_t > | digests (const std::vector< uint8_t > &keyBytes) |
| void | addSignature (Models::Bundle &bundleToSign, const Models::Address &inputAddress, const std::vector< uint8_t > &key) |
| bool | validateSignatures (const Models::Bundle &signedBundle, const Models::Address &inputAddress) |
Multi signing related functions.
| void IOTA::Crypto::MultiSigning::addSignature | ( | Models::Bundle & | bundleToSign, |
| const Models::Address & | inputAddress, | ||
| const std::vector< uint8_t > & | key | ||
| ) |
Adds the cosigner signatures to the corresponding bundle transaction
| bundleToSign | Bundle to be signed. |
| inputAddress | Input address. |
| key | Key to sign with. |
| std::vector<uint8_t> IOTA::Crypto::MultiSigning::digests | ( | const std::vector< uint8_t > & | keyBytes | ) |
Compute digests from key.
| keyBytes | The key in bytes. |
| std::vector<uint8_t> IOTA::Crypto::MultiSigning::key | ( | const std::vector< uint8_t > & | seedBytes, |
| uint32_t | index, | ||
| uint32_t | security | ||
| ) |
Derive a private key from a seed.
| seedBytes | Seed in bytes to be used for address generation. |
| index | The index to start the generation from. |
| security | The security to use for address generation. |
| bool IOTA::Crypto::MultiSigning::validateSignatures | ( | const Models::Bundle & | signedBundle, |
| const Models::Address & | inputAddress | ||
| ) |
Validate the signature fragment.
| signedBundle | The bundle. |
| inputAddress | The address. |
1.8.14