Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update node-forge '0.7.6' > '0.10.0' #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ node_modules
coverage
gh-pages

/lib/

# Visual Studio Code - https://code.visualstudio.com/
.settings/
Expand Down
31 changes: 31 additions & 0 deletions lib/address/address.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { H160 } from "../value/H160";
import { H256Value } from "../value/H256";
export type AddressValue = Address | string;
/**
* The bech32 form of account id. The human readable part(HRP) is used to
* represent the network. For address, the HRP is "ccc" for mainnet or
* "tcc" for testnet.
*
* Refer to the spec for the details about Address.
* https://github.com/CodeChain-io/codechain/blob/master/spec/CodeChain-Address.md
*/
export declare class Address {
static fromPublic(publicKey: H256Value, options: {
networkId: string;
version?: number;
}): Address;
static fromAccountId(accountId: H160 | string, options: {
networkId: string;
version?: number;
}): Address;
static fromString(address: string): Address;
static check(address: any): boolean;
static ensure(address: AddressValue): Address;
static ensureAccount(address: Address | H160 | string): H160;
private static checkString;
readonly accountId: H160;
readonly value: string;
private constructor();
toString(): string;
getAccountId(): H160;
}
109 changes: 109 additions & 0 deletions lib/address/address.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/address/address.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions lib/address/bech32.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* @hidden
*/
export declare function encode(prefix: any, words: any, LIMIT?: any): any;
/**
* @hidden
*/
export declare function decode(str: string, prefix: string, LIMIT?: number): {
prefix: string;
words: number[];
};
/**
* @hidden
*/
export declare function toWords(bytes: any): number[];
/**
* @hidden
*/
export declare function fromWords(words: any): number[];
182 changes: 182 additions & 0 deletions lib/address/bech32.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/address/bech32.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading