Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function convertToRawPrivKey(internalPrivKey: InternalPrivKey): string {
return ByteBuffer.fromBase64(internalPrivKey.value).toString('hex');
}
// convert internal pub key to raw pub key
export function convertToRawPubKey(internalPubKey: InternalPubKey): string {
return ByteBuffer.fromBase64(internalPubKey.value).toString('hex');
}
// convert internal sig to raw sig
var setTimestamp = function(timestamp, update_clock) {
if (timestamp && timestamp.data && timestamp.data !== 'null') {
timestamp = bytebuffer.fromBase64(timestamp.data);
console.log(timestamp);
atdClient.monotonicSnapshots = true;
atdClient.setLastCommitTimestamp(timestamp);
atdClient.update_clock = update_clock;
}
};
function convertToRawPubKey(internalPubKey) {
return ByteBuffer.fromBase64(internalPubKey.value).toString('hex');
}
function sortObject(object) {
export function convertToRawSig(internalSignature: InternalSignature): string {
return ByteBuffer.fromBase64(internalSignature.value).toString('hex');
}