File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed
Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,27 @@ Return value
9494Promise < string | undefined >
9595```
9696
97+ ### ` parseKeys `
98+
99+ This function takes a single positional argument:
100+
101+ | Parameter | Type | Description | Required |
102+ | ------------- | ------------- | ------------- | ------------- |
103+ | payload | string | A hex representation of the signature read from scan | Yes |
104+
105+ Return value
106+
107+ ``` ts
108+ {
109+ primaryPublicKeyHash : string ;
110+ primaryPublicKeyRaw : string ;
111+ secondaryPublicKeyHash : string ;
112+ secondaryPublicKeyRaw : string ;
113+ tertiaryPublicKeyHash : string ;
114+ tertiaryPublicKeyRaw : string ;
115+ } | undefined
116+ ```
117+
97118## Requirements
98119
99120- The library must be hosted with secure transport (SSL), even in a development environment.
Original file line number Diff line number Diff line change 11{
22 "name" : " pbt-chip-client" ,
3- "version" : " 0.0.3 " ,
3+ "version" : " 0.0.4 " ,
44 "description" : " Javascript library to make it easy to integrate with PBT for browsers" ,
55 "scripts" : {
66 "pre-commit" : " lint-staged" ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function generateCmd(
3838 return inputBytes ;
3939}
4040
41- function parseKeys ( payload : string ) {
41+ export function parseKeys ( payload : string ) {
4242 try {
4343 const primaryPublicKeyLength = parseInt ( "0x" + payload . slice ( 0 , 2 ) ) * 2 ;
4444 const primaryPublicKeyRaw = payload . slice ( 2 , primaryPublicKeyLength + 2 ) ;
You can’t perform that action at this time.
0 commit comments