Skip to content

Utilities for handling ICAP (SEC in IBAN) encoding

Notifications You must be signed in to change notification settings

BIUT-Block/biutjs-icap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEC ICAP

BASE36_ALPHABET

For simplicity we redefine it, as the default uses lowercase

Functions

prepare(iban)

ISO13616 reordering and letter translation NOTE: we assume input is uppercase only based off code from iban.js

mod9710(input)

Calculate ISO7064 mod 97-10 NOTE: assumes all numeric input string

fromAddress(address, nonstd)string

Convert Ethereum address to ICAP

fromAsset(asset, print)string

Convert asset into ICAP

toAddress(iban)string
toAsset(iban)object

Convert an ICAP into an asset

BASE36_ALPHABET

For simplicity we redefine it, as the default uses lowercase

Kind: global constant

prepare(iban)

ISO13616 reordering and letter translation NOTE: we assume input is uppercase only based off code from iban.js

Kind: global function

Param Type
iban string

prepare~iban

move front to the back

Kind: inner property of prepare

mod9710(input)

Calculate ISO7064 mod 97-10 NOTE: assumes all numeric input string

Kind: global function

Param Type
input any

fromAddress(address, nonstd) ⇒ string

Convert Ethereum address to ICAP

Kind: global function

Param Type Description
address string Address as a hex string
nonstd bool Accept address which will result in non-standard IBAN

fromAsset(asset, print) ⇒ string

Convert asset into ICAP

Kind: global function

Param Type Description
asset Object Asset object, must contain the fields asset, institution and client
print string

toAddress(iban) ⇒ string

Kind: global function

Param Type Description
iban string IBAN/ICAP, must have an address encoded

toAsset(iban) ⇒ object

Convert an ICAP into an asset

Kind: global function

Param Type
iban string

About

Utilities for handling ICAP (SEC in IBAN) encoding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published