Skip to content

Commit

Permalink
Sync with develop
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Ananev <[email protected]>
  • Loading branch information
artemananiev committed Jul 31, 2024
2 parents 02f65c9 + 26c3032 commit be14292
Show file tree
Hide file tree
Showing 191 changed files with 4,725 additions and 1,742 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node-flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ jobs:
- spotless
if: ${{ github.event_name != 'pull_request' || (github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository) }}
with:
custom-job-name: "Network Error Tests"
custom-job-name: "Abbrev Update Test"
branch-name: ${{ github.head_ref || github.ref_name }}
hedera-tests-enabled: true
use-branch-for-slack-channel: false
panel-config: "configs/services/suites/daily/GCP-Daily-Services-Comp-NetError-4N-1C.json"
panel-config: "configs/services/suites/daily/GCP-Daily-Services-Abbrev-Update-4N-2C.json"
secrets:
access-token: ${{ secrets.PLATFORM_GH_ACCESS_TOKEN }}
jrs-ssh-user-name: ${{ secrets.PLATFORM_JRS_SSH_USER_NAME }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/node-zxc-build-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ jobs:
- name: Setup Docker Buildx Support
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
with:
version: v0.15.1
driver-opts: network=host

- name: Setup Local Docker Registry
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/node-zxcron-develop-fsts-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

name: "ZXCron: [Node] Develop JRS Tests"
on:
schedule:
- cron: '30 6 * * *'
workflow_dispatch:

defaults:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/zxc-publish-production-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,13 @@ jobs:
env:
HOME: /x
with:
version: v24.0.7
version: v25.0.5
daemon-config: |
{
"registry-mirrors": [
"https://artifacts.swirldslabs.io/central-docker-external/"
]
}
- name: Configure Default Docker Context
run: |
Expand All @@ -195,7 +201,7 @@ jobs:
- name: Setup Docker Buildx Support
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
with:
version: v0.12.0
version: v0.15.1
driver-opts: network=host

- name: Setup Local Docker Registry
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/zxc-verify-docker-build-determinism.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,13 @@ jobs:
env:
HOME: /x
with:
version: v24.0.7
version: v25.0.5
daemon-config: |
{
"registry-mirrors": [
"https://artifacts.swirldslabs.io/central-docker-external/"
]
}
- name: Configure Default Docker Context
if: ${{ steps.baseline.outputs.exists == 'false' && !failure() && !cancelled() }}
Expand All @@ -188,7 +194,7 @@ jobs:
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
if: ${{ steps.baseline.outputs.exists == 'false' && !failure() && !cancelled() }}
with:
version: v0.12.0
version: v0.15.1
driver-opts: network=host

- name: Setup Local Docker Registry
Expand Down Expand Up @@ -377,7 +383,13 @@ jobs:
env:
HOME: ${{ runner.os == 'Linux' && '/x' || steps.home.outputs.directory }}
with:
version: v24.0.7
version: v25.0.5
daemon-config: |
{
"registry-mirrors": [
"https://artifacts.swirldslabs.io/central-docker-external/"
]
}
- name: Configure Default Docker Context
env:
Expand All @@ -398,7 +410,7 @@ jobs:
- name: Setup Docker Buildx Support
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
with:
version: v0.12.0
version: v0.15.1
driver-opts: network=host

- name: Setup Local Docker Registry
Expand Down
54 changes: 47 additions & 7 deletions docs/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## A

- [Account Aliases](#account-aliases)
- [Address Book](#address-book)
- [Admin Transaction](#admin-transaction)
- [Aliases](#aliases)
- [Application Accounts](#application-accounts)
- [Auto Associations](#asynchronous)
- [Auto-Renew Accounts](#auto-renew-accounts)
Expand Down Expand Up @@ -55,20 +55,41 @@
## T

- [Token Allowance](#token-allowance)
- [Triplet](#triplet)

## W

- [Weibar](#weibar)

---

## Account Aliases
## Aliases

**Account Aliases**: These are identifiers which can be protobuf serialized keys of ED25519 or ECDSA
Keys or 33 byte EVM address values. The "triplet" form (e.g. 0.0.18273892) is the simpler and easier
to "type". An alias is not intended to be user-friendly, but instead to offer a smart-contract
friendly identifier. See https://hips.hedera.com/hip/hip-32 and https://hips.hedera.com/hip/hip-583
for more information.
**Alias**: A value that can be associated with an account, and used in some circumstances instead
of the account id [triplet](#triplet).

Most often used to indicate a 20-byte value that can be used in smart contracts to refer to a
Hedera account.

All accounts will have a (derived) account num alias, but all accounts _may_ have a single
EVM address alias _or_ key alias.

The different kinds of alias are detailed in HIP-583[^583]. HIP-32[^32] also describes a _key
alias.

[^32]: [HIP-32](https://hips.hedera.com/hip/hip-32) "Auto Account Creation"
[^583]: [HIP-583](https://hips.hedera.com/hip/hip-583)
"Expand alias support in CryptoCreate & CryptoTransfer Transactions"

* **Account num alias**: The account ID triplet, encoded as a 64-bit `long` in the usual way,
then prefixed with 12 bytes of `0` to form a 20-byte value
* a.k.a. "long zero address" (though this term is somewhat deprecated)
* **EVM address alias**: An EVM address - the rightmost 20 bytes of the 32 byte Keccak-256 hash of
an ECDSA sep25661 public key; that is, an "address" on an Ethereum-like chain as defined in the
Ethereum Yellow Paper.
* **Key alias**: Available if an account's key is a "primitive" key - not a
threshold key or keylist. These are protobuf serialized keys of ED25519 or ECDSA `Key`s.
* AKA **Account Alias** in the earlier HIP-32[^32]

## Address Book

Expand Down Expand Up @@ -296,6 +317,25 @@ user or smart contract to spend on their behalf. This allowance is set by the us
modified or revoked at any time. It allows the spender to spend tokens on behalf of the owner
without requiring explicit approval for each transaction.

## Triplet

**Triplet**: An id for some Hedera semantic object (e.g., Account, Token Type, File) of the
form `shard.realm.num`.
* For a standard entity id:
* The display format shows `shard`, `realm`, and `num` in base-10
* E.g., `0.0.12345678`
* Each of `shard`, `realm`, and `num` are 8-byte `long` values
* Currently `shard` and `realm` are always `0`
* For aliases - where the triplet form is used for user input/output only and not used
internally in the code:
* `num` can be a hex-encoded value of:
* The entity ID encoded as an account num alias (i.e., long-zero)
* E.g., `0.0.00000000000000000000000000000000004D67FB`
* EVM address
* E.g., `0.0.b794f5ea0ba39494ce839613fffba74279579268`
* Key alias
* E.g., `0.0.1220d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a`

---

## Weibar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ javaModuleDependencies {
moduleNamePrefixToGroup.put("com.hedera.storage.", "com.hedera.storage.blocknode")
moduleNameToGA.put("com.hedera.evm", "com.hedera.evm:hedera-evm")
moduleNameToGA.put("com.hedera.evm.impl", "com.hedera:hedera-evm-impl")
moduleNameToGA.put(
"com.hedera.cryptography.pairings.signatures",
"com.hedera.cryptography:hedera-cryptography-pairings-signatures"
)
moduleNameToGA.put(
"com.hedera.cryptography.pairings.api",
"com.hedera.cryptography:hedera-cryptography-pairings-api"
)
}
4 changes: 2 additions & 2 deletions hapi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ tasks.withType<JavaCompile>().configureEach {
// Add downloaded HAPI repo protobuf files into build directory and add to sources to build them
tasks.cloneHederaProtobufs {
// uncomment below to use a specific tag
tag = "v0.53.0"
// tag = "v0.53.0"
// uncomment below to use a specific branch
// branch = "main"
branch = "playlod-transaction-refactoring"
}

sourceSets {
Expand Down
25 changes: 25 additions & 0 deletions hedera-cryptography/hedera-cryptography-tss/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (C) 2020-2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins { id("com.hedera.gradle.platform") }

group = "com.hedera.cryptography"

testModuleInfo {
requires("com.hedera.cryptography.pairings.api")
requires("org.junit.jupiter.api")
requires("org.mockito")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (C) 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.hedera.cryptography.tss.api;

import static java.util.Objects.requireNonNull;

import edu.umd.cs.findbugs.annotations.NonNull;

/**
* A message sent as part of either genesis keying, or rekeying.
* @param bytes the byte representation of the opaque underlying structure used by the library
*/
public record TssMessage(@NonNull byte[] bytes) {

/**
* Constructor
* @param bytes bytes the byte representation of the opaque underlying structure used by the library
*/
public TssMessage {
requireNonNull(bytes, "bytes must not be null");
}
}
Loading

0 comments on commit be14292

Please sign in to comment.