How to use the bytebuffer.fromBase64 function in bytebuffer

To help you get started, we’ve selected a few bytebuffer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lino-network / lino-js / src / transport / encoder.ts View on Github external
export function convertToRawPrivKey(internalPrivKey: InternalPrivKey): string {
  return ByteBuffer.fromBase64(internalPrivKey.value).toString('hex');
}
// convert internal pub key to raw pub key
github lino-network / lino-js / src / transport / encoder.ts View on Github external
export function convertToRawPubKey(internalPubKey: InternalPubKey): string {
  return ByteBuffer.fromBase64(internalPubKey.value).toString('hex');
}
// convert internal sig to raw sig
github AntidoteDB / WebCure / Project / app.js View on Github external
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;
  }
};
github lino-network / lino-js / lib / lino-js.esm.js View on Github external
function convertToRawPubKey(internalPubKey) {
    return ByteBuffer.fromBase64(internalPubKey.value).toString('hex');
}
function sortObject(object) {
github lino-network / lino-js / src / transport / encoder.ts View on Github external
export function convertToRawSig(internalSignature: InternalSignature): string {
  return ByteBuffer.fromBase64(internalSignature.value).toString('hex');
}