This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sortStack(stack, sorted = false, inOrder = true) { | |
if (sorted) return stack; | |
const stackTwo = new Stack(); | |
let isSorted = true; | |
while (stack !== null) { | |
const top = stack.pop(); | |
if (stack.isEmpty()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<epcis:EPCISDocument | |
xmlns:epcis="urn:epcglobal:epcis:xsd:1" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" | |
schemaVersion="0" | |
creationDate="2001-12-17T09:30:47Z" | |
xsi:schemaLocation="urn:epcglobal:epcis:xsd:1 http://www.gs1si.org/BMS/epcis/1_2/EPCglobal-epcis-1_2.xsd"> | |
<EPCISHeader> | |
<sbdh:StandardBusinessDocumentHeader> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<epcis:EPCISDocument | |
xmlns:epcis="urn:epcglobal:epcis:xsd:1" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" | |
schemaVersion="0" | |
creationDate="2001-12-17T09:30:47Z" | |
xsi:schemaLocation="urn:epcglobal:epcis:xsd:1 http://www.gs1si.org/BMS/epcis/1_2/EPCglobal-epcis-1_2.xsd"> | |
<EPCISHeader> | |
<sbdh:StandardBusinessDocumentHeader> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=============================================================================== | |
// RECOVERY CALLS | |
//=============================================================================== | |
const express = require('express'); | |
const app = express(); | |
const crypto = require('crypto'); | |
app.get('/recovery', (req, res) => { | |
let messages = req.session.flash; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const blake2b = require("blake2b"); | |
const keccak = require('keccak'); | |
validWavesAddress(address) { | |
console.log(`Checking address validity...`) | |
let bytes = this.fromBase58(address); | |
const _blake2b = (data) => { | |
return blake2b(32).update(data).digest(); | |
} |