본문 바로가기

IT

(12)
"잃어버린 이더리움 프라이빗 키 회수 가능"...ERC-4337 토큰 기술 개발 [디지털투데이 황치규 기자]이더리움 개발자들이 1일(현지시간) ETH덴버 월렛콘(WalletCon) 행사에서 ERC-4337 토큰 표준을 개발했다고 밝혔다. 디파이언트 보도에 따르면 ERC-4337은 지갑들이 프로그래밍 가능한 스마트 컨트랙트로 운영되도록 해 사용자들이 잃어버린 프라이빗 키를 회수할 수 있는, 이른바, 계정 추출(account abstraction)을 가능하게 한다. 이더리움 재단 보안 연구원인 요아프 웨이스는 ERC-4337 코드는 오픈제플린 보안 감사를 성공적으로 통과했다는 소식도 전했다. ERC-4337은 스마트 컨트랙트로 배치되는 만큼, 코어 이더리움 프로토콜에 큰 변화를 필요로 하지 않는다고 디파이언트는 전했다. ERC-4337은 2021년 9월, 비탈릭 부테린, 요아프 웨이스를..
pynecone 소개 https://pynecone.io/ 이라는게 나왔다. 웹앱을 만들고 배포할 수 있는 full-stack frame 이라고 한다. Pure Python, Easy to Learn, Full Flexibility, Batteries Included 가 motivation 이라고 한다. 전체 앱을 single language(python)으로 만들수 있다고 하는데, 한번 배워서 여러곳에서 사용하라는 react가 생각나기도 한다. 한번 테스트 삼아 사용해보고자 한다.
sh, bash에서 array 사용 #!/bin/bash int_array=(1 2 3) for i in ${index_array[@]} do echo $i done
NFT batch minting https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.0 에 ERC721Consecutive: Implementation of EIP-2309 that allows batch minting of ERC721 tokens during construction. (#3311) 가 포함되었습니다. https://docs.openzeppelin.com/contracts/4.x/api/token/erc721#ERC721Consecutive 에 자세한 설명이 있습니다. 요약하면 contract 생성시에 가능 한번에 5000개로 제한 입니다.
폴리곤 NFT 생성하기 truffle 을 이용해서 폴리곤에 NFT 생성 https://wiki.polygon.technology/docs/develop/truffle
django SessionStore >>> for key, value in s.items(): >>> print('{}: {}'.format(key, value)) s = SessionStore(session_key='123123') from django.contrib.sessions.backends.db import SessionStore
python 디버깅 Ubuntu 20.04 https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=zdr55&logNo=222003486778 Ulimit -a 1. 코어덤프 파일 크기 /etc/security/limits.conf * soft core unlimited * hard core unlimited 대상 프로그램을 서비스로 실행하면 서비스 description에 아래 항목 추가 [Service] LimitCORE=infinity 2. 경로 /etc/sysctl.conf kernel.core_pattern = /원하는/절대/경로/%h-%e-%t-%p.core pport 데몬 비활성화 (비활성화 안하면 시스템 reboot 시 설정값이 초기화 됨) su..
canvas sprite 예제 let img = new Image(); img.src = 'https://opengameart.org/sites/default/files/Green-Cap-Character-16x18.png'; img.onload = function() { init(); }; const scale = 2; const width = 16; const height = 18; const scaledWidth = scale * width; const scaledHeight = scale * height; function drawFrame(frameX, frameY, canvasX, canvasY) { ctx.clearRect(canvasX, canvasY, scaledWidth, scaledHeight); ctx.drawIm..
좌표계 변환 // WGS84 +title=+title=WGS84 경위도 +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees //EPSG:4326 +title=long/lat:WGS84 +proj=longlat +a=6378137.0 +b=6356752.31424518 +ellps=WGS84 +datum=WGS84 +units=degrees // EPSG:4269 +title=long/lat:NAD83 +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees //EPSG:3875 +title= Google Mercator +proj=merc +a=6378137 +b=6378..
mysql query 성능 1. explain extra 컬럼 using filesort ( https://www.percona.com/blog/2009/03/05/what-does-using-filesort-mean-in-mysql/ ) First of all, this is Using temporary econdly, temporary tables may go to disk if they are too big, but EXPLAIN doesn’t show that. using where. 이건 where 를 통해서 갯수가 제한되는 상황이면 보이는 것 같음 2. profiling SET profiling = 1; // 활성화 SET profiling = 0; // 비활성화 SHOW PROFILES; show profile all..