function generateUpdateEntry(rootChainId, fctAddress, sk1) {
    if (!isValidServerIdentityChainId(rootChainId)) {
        throw new Error(`Invalid root chain id ${rootChainId}`);
    }
    if (!isValidSk1(sk1)) {
        throw new Error('Lowest level identity key (sk1) is not valid');
    }
    if (!isValidPublicFctAddress(fctAddress)) {
        throw new Error(`Invalid public FCT address: ${fctAddress}`);
    }

    return getCoinbaseAddressUpdateEntry(rootChainId, fctAddress, sk1);
}
/**
 * Generate Entry object to update a server identity coinbase address.
 * @memberof server
 * @function generateCoinbaseAddressUpdateEntry
 * @param {string} rootChainId - Identity Root Chain Id.
 * @param {string} fctAddress - Public Factoid address to set as the new coinbase address.
 * @param {string} sk1 - Server identity Secret Key 1.
 * @returns {{{chainId: Buffer, extIds: Buffer[], content: Buffer}}}
 */
Generate Entry object to update a server identity coinbase address.
@memberof server
@function generateCoinbaseAddressUpdateEntry
@param {string} rootChainId - Identity Root Chain Id.
@param {string} fctAddress - Public Factoid address to set as the new coinbase address.
@param {string} sk1 - Server identity Secret Key 1.
Generate Entry object to update a server identity coinbase address . @memberof server @function generateCoinbaseAddressUpdateEntry @param { string } rootChainId - Identity Root Chain Id . @param { string } fctAddress - Public Factoid address to set as the new coinbase address . @param { string } sk1 - Server identity Secret Key 1 .
function generateUpdateEntry(rootChainId, fctAddress, sk1) {
    if (!isValidServerIdentityChainId(rootChainId)) {
        throw new Error(`Invalid root chain id ${rootChainId}`);
    }
    if (!isValidSk1(sk1)) {
        throw new Error('Lowest level identity key (sk1) is not valid');
    }
    if (!isValidPublicFctAddress(fctAddress)) {
        throw new Error(`Invalid public FCT address: ${fctAddress}`);
    }
    return getCoinbaseAddressUpdateEntry(rootChainId, fctAddress, sk1);
}
function generateUpdateEntry ( rootChainId , fctAddress , sk1 ) { if ( ! isValidServerIdentityChainId ( rootChainId ) ) { throw new Error ( ` ${ rootChainId } ` ) ; } if ( ! isValidSk1 ( sk1 ) ) { throw new Error ( 'Lowest level identity key (sk1) is not valid' ) ; } if ( ! isValidPublicFctAddress ( fctAddress ) ) { throw new Error ( ` ${ fctAddress } ` ) ; } return getCoinbaseAddressUpdateEntry ( rootChainId , fctAddress , sk1 ) ; }
Generate Entry object to update a server identity coinbase address.
Generate Entry object to update a server identity coinbase address .