UNPKG

@rhino.fi/client-js

Version:
10 lines (9 loc) 175 B
/* ensure stark Key is always 64 bits */ module.exports = starkPublicKey => { return { x: starkPublicKey.x.padStart(64, '0').substr(-64), y: starkPublicKey.y, } }