mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-30 00:55:49 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user