LICENSE and README updates (#254)

* LICENSE and README updates

* Remove duplicated definition

* Remove duplicated file
This commit is contained in:
Jaco Greeff
2018-11-21 12:26:38 +01:00
committed by GitHub
parent ad9b46a5b9
commit 3bc1b7541b
274 changed files with 1670 additions and 379 deletions
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 from '@polkadot/util/hex/toU8a';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 blake2bAsHex from './blake2b/asHex';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 from '@polkadot/util/hex/toU8a';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 blake2bAsU8a from './blake2b/asU8a';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 from '@polkadot/util/hex/toU8a';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { u8aToHex } from '@polkadot/util/index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { blake2bAsU8a } from './index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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.
// TODO: For Node we can also use node-blake2 (npm blake2)
import blakejs from 'blakejs';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 blake2bAsHex from './asHex';
import blake2bAsU8a from './asU8a';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 blake2AsHex from './asHex';
import blake2AsU8a from './asU8a';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 * from './blake2';
export * from './mnemonic';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { keccakAsHex } from './index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { u8aToHex } from '@polkadot/util/index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { keccak256 } from 'js-sha3';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 keccakAsHex from './asHex';
import keccakAsU8a from './asU8a';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 generate from './generate';
import validate from './validate';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { generateMnemonic } from 'bip39';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 mnemonicGenerate from './generate';
import mnemonicToSeed from './toSeed';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 toSecret from './toSecret';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { mnemonicToSeed } from 'bip39';
import { bufferToU8a } from '@polkadot/util/index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 toSecret from './toSecret';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 validate from './validate';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { validateMnemonic } from 'bip39';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { naclDecrypt, naclEncrypt } from './index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 nacl from 'tweetnacl';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { naclEncrypt } from './index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 nacl from 'tweetnacl';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 naclDecrypt from './decrypt';
import naclEncrypt from './encrypt';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { naclKeypairFromRandom } from '../index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { KeypairType } from '../../types';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { naclKeypairFromSecret } from '../index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { KeypairType } from '../../types';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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/index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { KeypairType } from '../../types';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { naclKeypairFromString } from '../index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { KeypairType } from '../../types';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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/index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 nacl from 'tweetnacl';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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/index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 nacl from 'tweetnacl';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { isHex } from '@polkadot/util/index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { u8aToHex } from '@polkadot/util/index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { randomAsNumber } from './index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 BN from 'bn.js';
import { hexToBn } from '@polkadot/util/index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { isU8a } from '@polkadot/util/index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 nacl from 'tweetnacl';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 randomAsHex from './asHex';
import randomAsNumber from './asNumber';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { sha512AsU8a } from './index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 nacl from 'tweetnacl';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 sha512AsU8a from './asU8a';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { SignKeyPair } from 'tweetnacl';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { xxhashAsHex } from './index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { u8aToHex } from '@polkadot/util/index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 } from '@polkadot/util/index';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 xxhash64AsBn from './xxhash64/asBn';
+1 -1
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 xxhashAsHex from './asHex';
import xxhashAsU8a from './asU8a';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { xxhash64AsBn } from './index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 BN from 'bn.js';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { xxhash64AsHex } from './index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { hexAddPrefix } from '@polkadot/util/index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 { xxhash64AsRaw } from './index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 xxhash64AsValue from './asValue';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 xxhash64AsValue from './asValue';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 xxhashjs from 'xxhashjs';
import { isBuffer, isString, u8aToBuffer } from '@polkadot/util/index';
@@ -1,6 +1,6 @@
// Copyright 2017-2018 @polkadot/util-crypto 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 xxhash64AsBn from './asBn';
import xxhash64AsHex from './asHex';