Skip to content

Instantly share code, notes, and snippets.

View RafaelAPB's full-sized avatar
🎯
Focusing

Rafael Belchior RafaelAPB

🎯
Focusing
View GitHub Profile
rafaelapb@RWFV090YJW cactus-plugin-satp-hermes % yarn codegen
> @hyperledger/cactus-plugin-satp-hermes@2.0.0-alpha.2 generate-sdk
> run-p 'generate-sdk:*'
> @hyperledger/cactus-plugin-satp-hermes@2.0.0-alpha.2 generate-proto
> cd src/main/proto && buf generate --template buf.gen.yaml --config buf.yaml --verbose
[5:37:42 PM] Building project '/Users/rafaelapb/Projects/blockchain-integration-framework/packages/cactus-plugin-satp-hermes/tsconfig.json'...
packages/cactus-plugin-satp-hermes/src/main/typescript/generated/proto/cacti/satp/v02/common/session_pb.ts:243:14 - error TS1109: Expression expected.
243 permitions?: Permissions;
~
packages/cactus-plugin-satp-hermes/src/main/typescript/generated/proto/cacti/satp/v02/common/session_pb.ts:283:23 - error TS1109: Expression expected.
> @hyperledger/cactus-plugin-satp-hermes@2.0.0-alpha.2 generate-sdk:typescript-axios-gateway
> yarn bundle-openapi-gateway-json && openapi-generator-cli generate -i ./src/main/json/openapi-gateway-bundled.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected --ignore-file-override ../../openapi-generator-ignore
cacti/satp/v02/common/session.proto:149:9:symbol "cacti.satp.v02.common.MessageStagesTimestamps" already defined at cacti/satp/v02/common/session.proto:121:9
cacti/satp/v02/common/session.proto:150:22:symbol "cacti.satp.v02.common.MessageStagesTimestamps.stage1" already defined at cacti/satp/v02/common/session.proto:122:22
cacti/satp/v02/common/session.proto:151:22:symbol "cacti.satp.v02.common.MessageStagesTimestamps.stage2" already defined at cacti/satp/v02/common/session.proto:123:22
cacti/satp/v02/common/session.proto:152:22:symbol "cacti.satp.v02.common.MessageStagesTimestamps.stage3" already defined at cacti/satp/v02/
@RafaelAPB
RafaelAPB / spec.yml
Created March 22, 2024 14:41
blo spec version 7611657dc
openapi: 3.0.3
info:
title: SATP Gateway Client (Business Logic Orchestrator)
version: v0.0.1
description: |-
SATP is a protocol operating between two gateways that conducts the transfer of a digital asset from one gateway to another. The protocol establishes a secure channel between the endpoints and implements a 2-phase commit to ensure the properties of transfer atomicity, consistency, isolation and durability.
This API defines the gateway client facing API (business logic orchestrator, or BLO), which is named API-Type 1 in the SATP-Core specification.
**Additional Resources**:
@RafaelAPB
RafaelAPB / out.txt
Created March 22, 2024 06:44
linting open api spec with vacuum 0.9.10
Linting api/a/openapi.yml with vacuum...
██╗ ██╗ █████╗ ██████╗██╗ ██╗██╗ ██╗███╗ ███╗
██║ ██║██╔══██╗██╔════╝██║ ██║██║ ██║████╗ ████║
██║ ██║███████║██║ ██║ ██║██║ ██║██╔████╔██║
╚██╗ ██╔╝██╔══██║██║ ██║ ██║██║ ██║██║╚██╔╝██║
╚████╔╝ ██║ ██║╚██████╗╚██████╔╝╚██████╔╝██║ ╚═╝ ██║
╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
@RafaelAPB
RafaelAPB / gist:80d49dd6afff1be797ac3c42791ae318
Last active February 7, 2024 19:01
André's magic script - Cacti setup
#!/usr/bin/env bash
# For Ubuntu Docker
export DEBIAN_FRONTEND=noninteractive
export TZ=Europe/Lisbon
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install nano less git npm default-jdk
2020-09-09 18:53:33.575 UTC [peer.chaincode.dev-peer0.org1.example.com-b4s_1-385db6b99487417448c6b22238a77fc1b06ae2b12f3190306d67b97ebf040bfc] func2 -> INFO 09c + CHAINCODE_DIR=/usr/local/src
2020-09-09 18:53:33.575 UTC [peer.chaincode.dev-peer0.org1.example.com-b4s_1-385db6b99487417448c6b22238a77fc1b06ae2b12f3190306d67b97ebf040bfc] func2 -> INFO 09d + cd /usr/local/src
2020-09-09 18:53:33.575 UTC [peer.chaincode.dev-peer0.org1.example.com-b4s_1-385db6b99487417448c6b22238a77fc1b06ae2b12f3190306d67b97ebf040bfc] func2 -> INFO 09e + npm start -- --peer.address peer0.org1.example.com:7052
2020-09-09 18:53:33.790 UTC [peer.chaincode.dev-peer0.org1.example.com-b4s_1-385db6b99487417448c6b22238a77fc1b06ae2b12f3190306d67b97ebf040bfc] func2 -> INFO 09f
2020-09-09 18:53:33.790 UTC [peer.chaincode.dev-peer0.org1.example.com-b4s_1-385db6b99487417448c6b22238a77fc1b06ae2b12f3190306d67b97ebf040bfc] func2 -> INFO 0a0 > B4S_Chaincode@1.0.0 start /usr/local/src
2020-09-09 18:53:33.790 UTC [peer.chaincode.dev-peer0.org1.example
public async start(): Promise<Container> {
const containerNameAndTag = this.getContainerImageName();
if (this.container) {
await this.container.stop();
await this.container.remove();
}
const docker = new Docker();

Comments on Practical Decryption exFiltration: Breaking PDF Encryption.md

Title: Practical Decryption exFiltration: Breaking PDF Encryption.md

Authors:

Müller, Jens Ising, Fabian Mladenov, Vladislav Mainka, Christian

@RafaelAPB
RafaelAPB / On the Feasibility of Rerouting-based DDoS Defenses Muoi.md
Last active April 28, 2020 12:46
On the Feasibility of Rerouting-based DDoS Defenses Muoi

Title: On the Feasibility of Rerouting-based DDoS Defenses

Authors: Muoi Tran, Min Suk Kang, Hsu-Chun Hsiao, Wei-Hsuan Chiang, Shu-Po Tung, Yu-Su Wang

Reviewers: RB

Link to publication page

Contribution