Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dicarlo2 on github.
  • I am dicarlo2 (https://keybase.io/dicarlo2) on keybase.
  • I have a public key ASD1WFfNYTVm9oHqgGzUfkKF4o-fiBY6D7TxXs6Se2r7FAo

To claim this, I am signing this object:

{
"name": "10.0.3.50_3000",
"address": {
"socketAddress": {
"address": "10.0.3.50",
"portValue": 3000
}
},
"filterChains": [
{
{
"name": "10.0.3.50_3000",
"address": {
"socketAddress": {
"address": "10.0.3.50",
"portValue": 3000
}
},
"filterChains": [
{
const getStorageItemKeyMin = ({ hash, prefix }: StorageItemsKey): Buffer => {
if (hash === undefined || hash.length === 0) {
return bytewise.encode(bytewise.sorts.array.bound.lower([storageItemKeyPrefix]));
}
if (prefix === undefined || prefix.length === 0) {
return bytewise.encode(bytewise.sorts.array.bound.lower([storageItemKeyPrefix, common.uInt160ToBuffer(hash)]));
}
return bytewise.encode(