diff --git a/ts/index.ts b/ts/index.ts index 2e02345..26ff22e 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1 +1,4 @@ export * from './smartcrypto.classes.smartcrypto'; +export * from './smartcrypto.classes.keypair'; +export * from './smartcrypto.classes.privatekey'; +export * from './smartcrypto.classes.publickey'; diff --git a/ts/smartcrypto.classes.smartcrypto.ts b/ts/smartcrypto.classes.smartcrypto.ts index 6c3641c..7eedaf4 100644 --- a/ts/smartcrypto.classes.smartcrypto.ts +++ b/ts/smartcrypto.classes.smartcrypto.ts @@ -1,5 +1,8 @@ import * as plugins from './smartcrypto.plugins'; +import { KeyPair } from './smartcrypto.classes.keypair'; export class Smartcrypto { - + public async createKeyPair (): Promise { + return KeyPair.createNewKeyPair(); + }; } \ No newline at end of file