diff --git a/coretool.js b/coretool.js index ce57c21..cb798b7 100644 --- a/coretool.js +++ b/coretool.js @@ -160,7 +160,7 @@ module.exports = { * @return {*} * @memberof TICrypto */ - aiid_to_regcode (aiid) { + aiid_to_aiidcode (aiid) { const alphabet = 'e5fcdg3hqa4b1n0pij2rstuv67mwx89klyz' const base = 16367 let num = (aiid + base) * (base - alphabet.length) @@ -182,7 +182,7 @@ module.exports = { * @return {*} * @memberof TICrypto */ - regcode_to_aiid (code) { + aiidcode_to_aiid (code) { if (typeof code === 'string' && /^[a-zA-Z0-9]+$/.test(code)) { const alphabet = 'e5fcdg3hqa4b1n0pij2rstuv67mwx89klyz' const base = 16367