import { u } from "@cityofzion/neon-core" ; param response returns export function DerToHexSignature ( response ) { const ss = new u . StringStream ( response ) ; ss . read ( 2 ) ; ss . read ( 1 ) ; const r = ss . readVarBytes ( ) ; ss . read ( 1 ) ; const s = ss . readVarBytes ( ) ; const integers = [ r , s ] . map ( ( i ) => { if ( i . length < 64 ) { i = "0" . repeat ( i . length - 64 ) + i ; } if ( i . length > 64 ) { i = i . substr ( - 64 ) ; } return i ; } ) ; return integers . join ( "" ) ; }