Writes metadata for a key.

Synopsis

Declared in <wallet/walletdb.h>

bool
WriteKeyMetadata(
    CKeyMetadata const& meta,
    CPubKey const& pubkey,
    bool overwrite);

Return Value

true if the record was written.

Parameters

Name

Description

meta

The key metadata to store.

pubkey

The public key the metadata applies to.

overwrite

Whether to overwrite an existing record.

Created with MrDocs