mirror of
https://github.com/sparrowwallet/hummingbird.git
synced 2024-12-25 17:46:44 +00:00
add new types to ur decode from registry, bump to v1.7.1
This commit is contained in:
parent
761326d9a2
commit
e23abf8100
3 changed files with 22 additions and 2 deletions
|
@ -12,7 +12,7 @@ Hummingbird requires a minimum of Java 8.
|
|||
Hummingbird is hosted in Maven Central and can be added as a dependency with the following:
|
||||
|
||||
```
|
||||
implementation('com.sparrowwallet:hummingbird:1.7.0')
|
||||
implementation('com.sparrowwallet:hummingbird:1.7.1')
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -16,7 +16,7 @@ apply plugin: 'com.bmuschko.nexus'
|
|||
|
||||
archivesBaseName = 'hummingbird'
|
||||
group 'com.sparrowwallet'
|
||||
version '1.7.0'
|
||||
version '1.7.1'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -78,6 +78,26 @@ public class UR {
|
|||
return CryptoAccount.fromCbor(item);
|
||||
} else if(registryType == RegistryType.CRYPTO_SSKR) {
|
||||
return CryptoSskr.fromCbor(item);
|
||||
} else if(registryType == RegistryType.SEED) {
|
||||
return URSeed.fromCbor(item);
|
||||
} else if(registryType == RegistryType.HDKEY) {
|
||||
return URHDKey.fromCbor(item);
|
||||
} else if(registryType == RegistryType.KEYPATH) {
|
||||
return URKeypath.fromCbor(item);
|
||||
} else if(registryType == RegistryType.COIN_INFO) {
|
||||
return URCoinInfo.fromCbor(item);
|
||||
} else if(registryType == RegistryType.ECKEY) {
|
||||
return URECKey.fromCbor(item);
|
||||
} else if(registryType == RegistryType.ADDRESS) {
|
||||
return URAddress.fromCbor(item);
|
||||
} else if(registryType == RegistryType.OUTPUT_DESCRIPTOR) {
|
||||
return UROutputDescriptor.fromCbor(item);
|
||||
} else if(registryType == RegistryType.PSBT) {
|
||||
return URPSBT.fromCbor(item);
|
||||
} else if(registryType == RegistryType.ACCOUNT_DESCRIPTOR) {
|
||||
return URAccountDescriptor.fromCbor(item);
|
||||
} else if(registryType == RegistryType.SSKR) {
|
||||
return URSSKR.fromCbor(item);
|
||||
}
|
||||
} catch(CborException e) {
|
||||
throw new InvalidCBORException(e.getMessage());
|
||||
|
|
Loading…
Reference in a new issue