LICENSE and README updates (#254)
* LICENSE and README updates * Remove duplicated definition * Remove duplicated file
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Trie$Pairs } from '../types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import encodeHexPrefix from './hexPrefix';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
export default function encodeHexPrefix (nibbles: Uint8Array | Array<number>, isLeaf: boolean): Uint8Array {
|
||||
const bits = ((nibbles.length & 1) + (2 * (isLeaf ? 1 : 0))) << 4;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Trie$Pairs } from '../types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Trie$Pairs } from '../types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Trie$Pairs } from '../types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Trie$Pair } from '../types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import trieRoot from './root';
|
||||
import trieRootOrdered from './rootOrdered';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import stringToU8a from '@polkadot/util/string/toU8a';
|
||||
import hexToU8a from '@polkadot/util/hex/toU8a';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Trie$Pairs } from './types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { hexToU8a, stringToU8a } from '@polkadot/util/index';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import rlpEncode from '@polkadot/util-rlp/encode';
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
export type Trie$Pair = {
|
||||
k: Uint8Array,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import stringToU8a from '@polkadot/util/string/toU8a';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
/**
|
||||
* @name asNibbles
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import stringToU8a from '@polkadot/util/string/toU8a';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
/**
|
||||
* @name fromNibbles
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Trie$Pairs } from '../types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import pairsUniq from './pairsUniq';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Trie$Pair, Trie$Pairs } from '../types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
/**
|
||||
* @name getSharedLength
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import sharedPrefixLength from './sharedPrefixLength';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2018 @polkadot/trie-hash authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { Trie$Pairs } from '../types';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user