Skip to content

Commit

Permalink
RGB*: update with new Baid58 v0.4 ids
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jul 24, 2023
1 parent f98e8f3 commit 8aa190e
Show file tree
Hide file tree
Showing 8 changed files with 361 additions and 593 deletions.
4 changes: 2 additions & 2 deletions lnpbp-0020.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Comments-URI: <https://github.com/LNP-BP/LNPBPs/discussions/140>
Status: Proposal
Type: Standards Track
Created: 2019-09-23
Updated: 2023-05-10
Updated: 2023-07-24
Finalized: ~
Copyright: (0) public domain
License: CC0-1.0
Expand Down Expand Up @@ -69,7 +69,7 @@ Interface specification is the following Contractum code:

```haskell
-- Defined by LNPBP-31 standard in `RGBContract.sty` file
import scoop_ocean_contour_DizxAzKBUaXCUkEZDGQegfJXQeK5Nk4pK142eEkC1EBM as RGBContract
import urn:ubideco:stl:6vbr9ZrtsD9aBjo5qRQ36QEZPVucqvRRjKCPqE8yPeJr#choice-little-boxer as RGBContract

interface RGB20
-- Asset specification containing ticker, name, precision etc.
Expand Down
4 changes: 2 additions & 2 deletions lnpbp-0021.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Comments-URI: <https://github.com/LNP-BP/LNPBPs/issues/70>
Status: Proposal
Type: Standards Track
Created: 2020-09-10
Updated: 2023-05-10
Updated: 2023-07-24
License: CC0-1.0
```

Expand Down Expand Up @@ -57,7 +57,7 @@ Interface specification is the following Contractum code:

```haskell
-- Defined by LNPBP-31 standard in `RGBContract.sty` file
import scoop_ocean_contour_DizxAzKBUaXCUkEZDGQegfJXQeK5Nk4pK142eEkC1EBM as RGBContract
import urn:ubideco:stl:6vbr9ZrtsD9aBjo5qRQ36QEZPVucqvRRjKCPqE8yPeJr#choice-little-boxer as RGBContract

-- # Defining main data structures

Expand Down
4 changes: 2 additions & 2 deletions lnpbp-0022.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Comments-URI: <https://github.com/LNP-BP/LNPBPs/discussions>
Status: Draft
Type: Standards Track
Created: 2020-09-10
Updated: 2023-05-10
Updated: 2023-07-24
Finalized: ~
Copyright: (0) public domain
License: CC0-1.0
Expand Down Expand Up @@ -54,7 +54,7 @@ Interface specification is the following Contractum code:

```haskell
-- Defined by LNPBP-31 standard in `RGBContract.sty` file
import scoop_ocean_contour_DizxAzKBUaXCUkEZDGQegfJXQeK5Nk4pK142eEkC1EBM as RGBContract
import urn:ubideco:stl:6vbr9ZrtsD9aBjo5qRQ36QEZPVucqvRRjKCPqE8yPeJr#choice-little-boxer as RGBContract

data XonlyPubkey :: [Byte ^ 32]
data SchnorrSig :: [Byte ^ 64]
Expand Down
4 changes: 2 additions & 2 deletions lnpbp-0023.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Comments-URI: <https://github.com/LNP-BP/LNPBPs/discussions>
Status: Proposal
Type: Standards Track
Created: 2020-09-10
Updated: 2023-05-10
Updated: 2023-07-24
Finalized: ~
Copyright: (0) public domain
License: CC0-1.0
Expand Down Expand Up @@ -45,7 +45,7 @@ Interface specification is the following Contractum code:

```haskell
-- Defined by LNPBP-31 standard in `RGBContract.sty` file
import scoop_ocean_contour_DizxAzKBUaXCUkEZDGQegfJXQeK5Nk4pK142eEkC1EBM as RGBContract
import urn:ubideco:stl:6vbr9ZrtsD9aBjo5qRQ36QEZPVucqvRRjKCPqE8yPeJr#choice-little-boxer as RGBContract

import RGB21

Expand Down
14 changes: 7 additions & 7 deletions lnpbp-0024.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Comments-URI: <https://github.com/LNP-BP/LNPBPs/discussions>
Status: Draft
Type: Standards Track
Created: 2020-09-10
Updated: 2023-05-10
Updated: 2023-07-24
Finalized: ~
License: GPL-3.0
```
Expand Down Expand Up @@ -44,13 +44,13 @@ Interface specification is the following Contractum code:

```haskell
-- Defined by LNPBP-31 standard in `RGBContract.sty` file
import scoop_ocean_contour_DizxAzKBUaXCUkEZDGQegfJXQeK5Nk4pK142eEkC1EBM as RGBContract
import urn:ubideco:stl:6vbr9ZrtsD9aBjo5qRQ36QEZPVucqvRRjKCPqE8yPeJr#choice-little-boxer as RGBContract

import camel_product_float_9Y12p3rVHBiJh3TZUgup8kMtKggwNX5zPzWH9TgGRiwD as StdLib
import urn:ubideco:stl:9KALDYR8Nyjq4FdMW6kYoL7vdkWnqPqNuFnmE9qHpNjZ#justice-rocket-type as Std

interface RGB24
global root :: ContractId?
global name :: Ident
global root :: RGBContract.ContractId?
global name :: Std.Ident
global {registry} :: Record

global created :: RGBContract.Timestamp
Expand All @@ -62,11 +62,11 @@ interface RGB24
invalidRoot |
incompleteRegistry

data Hostname :: [StdLib.AlphaNumDash ^ 1..63]
data Hostname :: [Std.AlphaNumDash ^ 1..63]
data DomainName :: [Hostname ^ 1..0xFF]

data Record :: host Hostname, entry Entry
data Entry :: a IPv4 | aaaa IPv6 | cname DomainName | sub RGB24.ContractId
data Entry :: a IPv4 | aaaa IPv6 | cname DomainName | sub RGBContract.ContractId
```

## Compatibility
Expand Down
4 changes: 2 additions & 2 deletions lnpbp-0025.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Comments-URI: <https://github.com/LNP-BP/LNPBPs/discussions>
Status: Proposal
Type: Standards Track
Created: 2023-06-28
Updated: 2023-06-28
Updated: 2023-07-24
Finalized: ~
Copyright: (0) public domain
License: CC0-1.0
Expand Down Expand Up @@ -48,7 +48,7 @@ Interface specification is the following Contractum code:

```haskell
-- Defined by LNPBP-31 standard in `RGBContract.sty` file
import scoop_ocean_contour_DizxAzKBUaXCUkEZDGQegfJXQeK5Nk4pK142eEkC1EBM as RGBContract
import urn:ubideco:stl:6vbr9ZrtsD9aBjo5qRQ36QEZPVucqvRRjKCPqE8yPeJr#choice-little-boxer as RGBContract

interface RGB25
global name :: RGBContract.Name
Expand Down
8 changes: 3 additions & 5 deletions lnpbp-0030.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Comments-URI: <https://github.com/LNP-BP/LNPBPs/discussions/140>
Status: Proposal
Type: Standards Track
Created: 2021-06-23
Updated: 2023-05-10
Updated: 2023-07-24
Finalized: ~
Copyright: (0) public domain
License: CC0-1.0
Expand Down Expand Up @@ -46,15 +46,13 @@ Interface specification is the following Contractum code:

```haskell
-- Defined by LNPBP-31 standard in `RGBContract.sty` file
import scoop_ocean_contour_DizxAzKBUaXCUkEZDGQegfJXQeK5Nk4pK142eEkC1EBM as RGBContract
import urn:ubideco:stl:6vbr9ZrtsD9aBjo5qRQ36QEZPVucqvRRjKCPqE8yPeJr#choice-little-boxer as RGBContract

interface RGB30
-- Asset specification containing ticker, name, precision etc.
global spec :: RGBContract.DivisibleAssetSpec

-- Contract text and creation date is separated from the spec since it must
-- not be changeable by the issuer.
global terms :: RGBContract.RicardianContract
global data :: RGBContract.ContractData
global created :: RGBContract.Timestamp

-- Ownership right over assets
Expand Down
Loading

0 comments on commit 8aa190e

Please sign in to comment.