USecp256k1Helper

class USecp256k1Helper : public UBlueprintFunctionLibrary

Exposes functionality that utilizes the bitcoin core secp256k1 library to Blueprints/C++ code

Public Static Functions

static FString RecoverAddressFromSignature(TArray<uint8> message, FString signature)

Blueprint node that recovers signing public address given signature and message hash byte array

static FAccount GenerateNewAccount()

Blueprint node that generates new random public private key

static FString SignMessage(TArray<uint8> messageHash, TArray<uint8> privateKey, int chainId = 1)

Blueprint node that signs message hash 32 byte array with given private key.

static FString CalcPublicAddressFromPrivateKey(unsigned char seckey[32])

Get the public address from a private key 32 byte array

static FString RecoverPublicAddressFromSignature(unsigned char msg_hash[32], FString signatureHexString)

Static C++ function to recover the public address from signature

static FString CalcFStringPublicAddress(secp256k1_context *ctx, secp256k1_pubkey pubkey)

Convert a secp256k1_pubkey to a FString representing the public key in hex

static std::string ChecksumEncode(std::string hashedPubKeyString)

Checksum encode a public key string