일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 계정추상화
- 컨트렉트 동일한 함수이름 호출
- redux 기초
- 오블완
- Vue.js
- cloud hsm 서명
- 티스토리챌린지
- redux toolkit 설명
- erc4337
- 머신러닝기초
- 러스트 기초 학습
- cloud hsm
- erc4337 contract
- ethers typescript
- rust 기초
- 러스트 기초
- ethers v6
- Vue
- 스마트 컨트렉트 함수이름 중복
- SBT표준
- 스마트컨트렉트 함수이름 중복 호출
- 스마트컨트렉트 예약어 함수이름 중복
- ambiguous function description
- git rebase
- ethers websocket
- 러스트기초
- cloud hsm 사용하기
- 체인의정석
- ethers type
- vue기초
- Today
- Total
목록분류 전체보기 (525)
체인의정석

1. 설치 링크https://www.jenkins.io/download/lts/macos/Install the latest LTS version: brew install jenkins-ltsStart the Jenkins service: brew services start jenkins-ltsRestart the Jenkins service: brew services restart jenkins-ltsUpdate the Jenkins version: brew upgrade jenkins-lts2. 설치brew install jenkins-lts3. 재실행 brew services restart jenkins-lts4. UI 접속 하기http://localhost:8080/ 5. UI에 입력할 비밀번호 찾..

1. JWT 저장 위치JWT는 로컬 스토리지, 세션 스토리지에 사용이 가능한데 세션 스토리지에 사용하는 것이 주기가 더 짧음개발자 도구의 Applicaion에 들어가면 세션 스토리지에 발급된 jwt를 확인할 수 있다.2. 로그인시 JWT 발급백엔드에 JWT에 대한 검증 로직 및 각 API에서 JWT의 role을 보고 처리하는 로직을 만들어 준다.그러나 프론트엔드에서도 jwt의 기간이 만료되거나 유효한 형태인지 정도의 체크는 해주고 유효하지 않을 경우 로그인 화면으로 보내서 jwt를 재발급을 요청하는 과정이 필요하다.interface JWTHeader { alg: string; typ: string;}interface JWTPayload { wallet_address: string; ..
1. POST 요청 (생성)기본 흐름클라이언트가 JSON 데이터 보냄서버가 JSON 파싱해서 구조체에 매핑데이터를 저장하거나 처리성공하면 200 OK, 실패하면 에러 응답// CreateExample// @Summary Example 데이터 생성// @Description 새로운 Example 데이터를 생성합니다.// @Tags example// @Accept json// @Produce json// @Param body body CreateExampleRequest true "Example 생성 요청 데이터"// @Success 200 {object} RespHeader// @Failure 400 {object} RespHeader// @Failure 500 {object} RespHeader// @R..
AWS에서는 자체적으로 mongoDB가 아닌 DocumentDB를 사용한다.이에 따라 로컬에서는 발생하지 않던 에러가 AWS배포 시에 발생하였다.Document DB에서 UPsert를 사용하니 "retryWrites" 관련 오류가 발생하였다.https://docs.aws.amazon.com/documentdb/latest/developerguide/mongo-apis.html Supported MongoDB APIs, operations, and data types in Amazon DocumentDB - Amazon DocumentDBSupported MongoDB APIs, operations, and data types in Amazon DocumentDB Amazon DocumentDB (with..

서명 로직 이후에 지갑 서명이 확인되면 해당 지갑의 role을 읽어와서 JWT를 발급해주는 구조지갑 서명이라는 검증 로직이 있기 때문에 Refresh Token은 생략*핵심 로직만 함수화 시켰으며, 함수명 및 변수들은 모두 임의로 지정기능구현JWT 발급 함수 (발급 해주고 리턴)import ( "github.com/golang-jwt/jwt/v5" "time")func GenerateJWT(secret string, userID string, role string, issuer string) (string, error) { claims := jwt.MapClaims{ "user_id": userID, // 사용자 식별자 "role": role, ..

Go-ethereum 모듈 설치서명 검증 로직에서는 고 이더리움 모듈이 필요한다. 안정적인 버전을 설치하지 않으면 다음 에러가 발생한다. go get github.com/ethereum/go-ethereum@latestgo: downloading github.com/ethereum/go-ethereum v1.15.7go: github.com/ethereum/go-ethereum@latest: github.com/ethereum/go-ethereum@v1.15.7: verifying module: checksum mismatch downloaded: h1:MnmJgaVD1LcBd4m6WJnMpLWhl5t5v4yI6zMBwvNv+ic= sum.golang.org: h1:vm1XXru..
MongoDB와 Go를 사용하여서 데이터를 조회할 때는Mongo driver를 사용하면된다.https://github.com/mongodb/mongo-go-driver GitHub - mongodb/mongo-go-driver: The Official Golang driver for MongoDBThe Official Golang driver for MongoDB. Contribute to mongodb/mongo-go-driver development by creating an account on GitHub.github.com이 중 cursor에 대해서 사용해보았다.먼저 위의 공식 문서 상 cursor는 다음과 같이 사용할 수 있게 되어있다. 커서의 경우 스트림 형태로 DB의 접근 1번만 통해서 계속..
Go-Swagger 사용법설치 go get -u github.com/go-swagger/go-swagger/cmd/swagger주석달기 (쳇지피티 시키면 잘달아줌)// CreateUserInfo// @Summary Create new user info// @Description 새 사용자 정보를 DB에 저장합니다.// @Tags account// @Accept json// @Produce json// @Param body body protocol.CreateUserRequest true "사용자 정보"// @Success 200 {object} protocol.RespHeader// @Failure 500 {object} protocol.RespHeader// @Router /v1/users/info..