Revert "Expose validation methods in public api"

This reverts commit 9e9a0a7d9b.

We should move methods like deriveKeypair and deriveAddress
off of the schemaValidator object.
This commit is contained in:
Elliot Lee
2018-08-10 14:54:01 -07:00
parent 9e9a0a7d9b
commit f5e1a4a588
5 changed files with 8 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ import * as assert from 'assert'
const {Validator} = require('jsonschema')
import {ValidationError} from './errors'
import {isValidAddress} from 'ripple-address-codec'
import {isValidSecret,deriveKeypair,deriveAddress} from './utils'
import {isValidSecret} from './utils'
function loadSchemas() {
// listed explicitly for webpack (instead of scanning schemas directory)
@@ -158,8 +158,5 @@ function schemaValidate(schemaName: string, object: any): void {
export {
schemaValidate,
isValidAddress,
isValidSecret,
deriveKeypair,
deriveAddress
isValidSecret
}